Source returns a view of the input used to create the Ast. This source may be complete or constructed from the SourceInfo.
()
| 114 | // Source returns a view of the input used to create the Ast. This source may be complete or |
| 115 | // constructed from the SourceInfo. |
| 116 | func (ast *Ast) Source() Source { |
| 117 | if ast == nil { |
| 118 | return nil |
| 119 | } |
| 120 | return ast.source |
| 121 | } |
| 122 | |
| 123 | // FormatType converts a type message into a string representation. |
| 124 | // |
no outgoing calls