Extensions returns the set of extensions present in the source.
()
| 439 | |
| 440 | // Extensions returns the set of extensions present in the source. |
| 441 | func (s *SourceInfo) Extensions() []Extension { |
| 442 | var extensions []Extension |
| 443 | if s == nil { |
| 444 | return extensions |
| 445 | } |
| 446 | return s.extensions |
| 447 | } |
| 448 | |
| 449 | // HasExtension returns whether the source info contains the extension which satisfies the minimum version requirement. |
| 450 | // |
no outgoing calls