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