Documentation ¶
Overview ¶
Package astimport can be used to import Nodes manually into an AST.
This is useful when an AST should be created manually.
Index ¶
- type Importer
- func (i *Importer) ImportArgument(ref int, from, to *ast.Document) int
- func (i *Importer) ImportArguments(refs []int, from, to *ast.Document) []int
- func (i *Importer) ImportDirective(ref int, from, to *ast.Document) int
- func (i *Importer) ImportDirectiveWithRename(ref int, renameTo string, from, to *ast.Document) int
- func (i *Importer) ImportField(ref int, from, to *ast.Document) int
- func (i *Importer) ImportListValues(ref int, from, to *ast.Document) (refs []int)
- func (i *Importer) ImportObjectFields(ref int, from, to *ast.Document) (refs []int)
- func (i *Importer) ImportType(ref int, from, to *ast.Document) int
- func (i *Importer) ImportTypeWithRename(ref int, from, to *ast.Document, renameTo string) int
- func (i *Importer) ImportValue(fromValue ast.Value, from, to *ast.Document) (value ast.Value)
- func (i *Importer) ImportVariableDefinition(ref int, from, to *ast.Document) int
- func (i *Importer) ImportVariableDefinitionWithRename(ref int, from, to *ast.Document, renameTo string) int
- func (i *Importer) ImportVariableDefinitions(refs []int, from, to *ast.Document) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Importer ¶
type Importer struct { }
Importer imports Nodes into an existing AST. Always use NewImporter() to create a new Importer.
func (*Importer) ImportArgument ¶
func (*Importer) ImportArguments ¶
func (*Importer) ImportDirective ¶
func (*Importer) ImportDirectiveWithRename ¶
func (*Importer) ImportListValues ¶
func (*Importer) ImportObjectFields ¶
func (*Importer) ImportTypeWithRename ¶
func (*Importer) ImportValue ¶
func (*Importer) ImportVariableDefinition ¶
func (*Importer) ImportVariableDefinitionWithRename ¶
Click to show internal directories.
Click to hide internal directories.