(module *Symbol)
| 3550 | } |
| 3551 | |
| 3552 | func GetSourceFileOfModule(module *Symbol) *SourceFile { |
| 3553 | declaration := module.ValueDeclaration |
| 3554 | if declaration == nil { |
| 3555 | declaration = GetNonAugmentationDeclaration(module) |
| 3556 | } |
| 3557 | return GetSourceFileOfNode(declaration) |
| 3558 | } |
| 3559 | |
| 3560 | func GetNonAugmentationDeclaration(symbol *Symbol) *Node { |
| 3561 | return core.Find(symbol.Declarations, func(d *Node) bool { |
no test coverage detected