AddExtension adds an extension record into the SourceInfo.
(ext Extension)
| 451 | |
| 452 | // AddExtension adds an extension record into the SourceInfo. |
| 453 | func (s *SourceInfo) AddExtension(ext Extension) { |
| 454 | if s == nil { |
| 455 | return |
| 456 | } |
| 457 | s.extensions = append(s.extensions, ext) |
| 458 | } |
| 459 | |
| 460 | // OffsetRange captures the start and stop positions of a section of text in the input expression. |
| 461 | type OffsetRange struct { |
no outgoing calls