• Matthew Dempsky's avatar
    cmd/compile/internal/syntax: expose additional information for gc · 11779362
    Matthew Dempsky authored
    gc needs access to line offsets for Nodes. It also needs access to the
    end line offset for function bodies so it knows what line number to
    use for things like implicit returns and defer executions.
    
    Lastly, include an extra bool to distinguish between simple and full
    slice expressions. This is redundant in valid parse trees, but needed
    by gc for producing complete warnings in invalid inputs.
    
    Change-Id: I64baf334a35c72336d26fa6755c67eb9d6f4e93c
    Reviewed-on: https://go-review.googlesource.com/27196Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    11779362
nodes.go 7.05 KB