MCPcopy
hub / github.com/google/mtail / positionFromMark

Function positionFromMark

internal/runtime/compiler/parser/parser.go:188–192  ·  view source on GitHub ↗

positionFromMark returns a position spanning from the last mark to the current position.

(mtaillex mtailLexer)

Source from the content-addressed store, hash-verified

186
187// positionFromMark returns a position spanning from the last mark to the current position.
188func positionFromMark(mtaillex mtailLexer) position.Position {
189 tp := tokenpos(mtaillex)
190 mp := markedpos(mtaillex)
191 return *position.Merge(&mp, &tp)
192}
193
194//line yacctab:1
195var mtailExca = [...]int{

Callers 1

ParseMethod · 0.85

Calls 3

MergeFunction · 0.92
tokenposFunction · 0.85
markedposFunction · 0.85

Tested by

no test coverage detected