...

Source file src/github.com/vektah/gqlparser/v2/ast/source.go

Documentation: github.com/vektah/gqlparser/v2/ast

     1  package ast
     2  
     3  // Source covers a single *.graphql file
     4  type Source struct {
     5  	// Name is the filename of the source
     6  	Name string
     7  	// Input is the actual contents of the source file
     8  	Input string
     9  	// BuiltIn indicate whether the source is a part of the specification
    10  	BuiltIn bool
    11  }
    12  
    13  type Position struct {
    14  	Start  int     // The starting position, in runes, of this token in the input.
    15  	End    int     // The end position, in runes, of this token in the input.
    16  	Line   int     // The line number at the start of this item.
    17  	Column int     // The column number at the start of this item.
    18  	Src    *Source // The source document this token belongs to
    19  }
    20  

View as plain text