AddExtension adds an extension record into the SourceInfo.
(ext Extension)
| 459 | |
| 460 | // AddExtension adds an extension record into the SourceInfo. |
| 461 | func (s *SourceInfo) AddExtension(ext Extension) { |
| 462 | if s == nil { |
| 463 | return |
| 464 | } |
| 465 | s.extensions = append(s.extensions, ext) |
| 466 | } |
| 467 | |
| 468 | // OffsetRange captures the start and stop positions of a section of text in the input expression. |
| 469 | type OffsetRange struct { |
no outgoing calls