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