• Robert Griesemer's avatar
    cmd/compile: track line directives w/ column information · 515fa58a
    Robert Griesemer authored
    Extend cmd/internal/src.PosBase to track column information,
    and adjust the meaning of the PosBase position to mean the
    position at which the PosBase's relative (line, col) position
    starts (rather than indicating the position of the //line
    directive). Because this semantic change is made in the
    compiler's noder, it doesn't affect the logic of src.PosBase,
    only its test setup (where PosBases are constructed with
    corrected incomming positions). In short, src.PosBase now
    matches syntax.PosBase with respect to the semantics of
    src.PosBase.pos.
    
    For #22662.
    
    Change-Id: I5b1451cb88fff3f149920c2eec08b6167955ce27
    Reviewed-on: https://go-review.googlesource.com/96535Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    515fa58a
Name
Last commit
Last update
..
input.go Loading commit data...
lex.go Loading commit data...
lex_test.go Loading commit data...
slice.go Loading commit data...
stack.go Loading commit data...
tokenizer.go Loading commit data...