MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / newParseError

Function newParseError

pkg/filter/ql/error.go:36–38  ·  view source on GitHub ↗

newParseError returns a new instance of ParseError.

(found string, expected []string, pos int, expr string)

Source from the content-addressed store, hash-verified

34
35// newParseError returns a new instance of ParseError.
36func newParseError(found string, expected []string, pos int, expr string) *ParseError {
37 return &ParseError{Found: found, Expected: expected, Pos: pos, Expr: expr}
38}
39
40// findPosInLine returns the parser position and the line number
41// where the syntax error occurred when the expression is split

Callers 8

ParseSequenceMethod · 0.85
ParseExprMethod · 0.85
parseUnaryExprMethod · 0.85
parseFieldMethod · 0.85
parseListMethod · 0.85
parseFunctionMethod · 0.85
parseDurationMethod · 0.85
TestParseErrorFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParseErrorFunction · 0.68