MCPcopy
hub / github.com/dgraph-io/dgraph / NewIterator

Method NewIterator

lex/lexer.go:62–68  ·  view source on GitHub ↗

NewIterator returns a new ItemIterator instance that uses the lexer.

()

Source from the content-addressed store, hash-verified

60
61// NewIterator returns a new ItemIterator instance that uses the lexer.
62func (l *Lexer) NewIterator() *ItemIterator {
63 it := &ItemIterator{
64 l: l,
65 idx: -1,
66 }
67 return it
68}
69
70// Errorf returns an error message using the location of the next item in the iterator.
71func (p *ItemIterator) Errorf(format string, args ...interface{}) error {

Callers 15

ParseMutationFunction · 0.95
ParseDQLFunction · 0.95
ParseWithNeedVarsFunction · 0.95
TestQueryLexingFunction · 0.95
TestMutationLexingFunction · 0.95
TestNewSchemaQueryFunction · 0.95
TestAbruptSchemaQueryFunction · 0.95
TestAbruptMutationFunction · 0.95
TestVariables1Function · 0.95
TestVariables2Function · 0.95
TestVariablesDefaultFunction · 0.95

Calls

no outgoing calls

Tested by 15

TestQueryLexingFunction · 0.76
TestMutationLexingFunction · 0.76
TestNewSchemaQueryFunction · 0.76
TestAbruptSchemaQueryFunction · 0.76
TestAbruptMutationFunction · 0.76
TestVariables1Function · 0.76
TestVariables2Function · 0.76
TestVariablesDefaultFunction · 0.76
TestIRIRefFunction · 0.76
TestLangSupportFunction · 0.76
TestMultiLangSupportFunction · 0.76