LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
()
| 306 | |
| 307 | // LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear. |
| 308 | func (s *SourceInfo) LineOffsets() []int32 { |
| 309 | if s == nil { |
| 310 | return []int32{} |
| 311 | } |
| 312 | return s.lines |
| 313 | } |
| 314 | |
| 315 | // MacroCalls returns a map of expression id to ast.Expr value where the id represents the expression |
| 316 | // node where the macro was inserted into the AST, and the ast.Expr value represents the original call |
no outgoing calls