LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
()
| 298 | |
| 299 | // LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear. |
| 300 | func (s *SourceInfo) LineOffsets() []int32 { |
| 301 | if s == nil { |
| 302 | return []int32{} |
| 303 | } |
| 304 | return s.lines |
| 305 | } |
| 306 | |
| 307 | // MacroCalls returns a map of expression id to ast.Expr value where the id represents the expression |
| 308 | // node where the macro was inserted into the AST, and the ast.Expr value represents the original call |
no outgoing calls