astimport

package
v1.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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 (i *Importer) ImportArgument(ref int, from, to *ast.Document) int

func (*Importer) ImportArguments

func (i *Importer) ImportArguments(refs []int, from, to *ast.Document) []int

func (*Importer) ImportDirective

func (i *Importer) ImportDirective(ref int, from, to *ast.Document) int

func (*Importer) ImportDirectiveWithRename

func (i *Importer) ImportDirectiveWithRename(ref int, renameTo string, from, to *ast.Document) int

func (*Importer) ImportField

func (i *Importer) ImportField(ref int, from, to *ast.Document) int

func (*Importer) ImportListValues

func (i *Importer) ImportListValues(ref int, from, to *ast.Document) (refs []int)

func (*Importer) ImportObjectFields

func (i *Importer) ImportObjectFields(ref int, from, to *ast.Document) (refs []int)

func (*Importer) ImportType

func (i *Importer) ImportType(ref int, from, to *ast.Document) int

func (*Importer) ImportTypeWithRename

func (i *Importer) ImportTypeWithRename(ref int, from, to *ast.Document, renameTo string) int

func (*Importer) ImportValue

func (i *Importer) ImportValue(fromValue ast.Value, from, to *ast.Document) (value ast.Value)

func (*Importer) ImportVariableDefinition

func (i *Importer) ImportVariableDefinition(ref int, from, to *ast.Document) int

func (*Importer) ImportVariableDefinitionWithRename

func (i *Importer) ImportVariableDefinitionWithRename(ref int, from, to *ast.Document, renameTo string) int

func (*Importer) ImportVariableDefinitions

func (i *Importer) ImportVariableDefinitions(refs []int, from, to *ast.Document) []int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL