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

Function markedpos

internal/runtime/compiler/parser/parser.go:183–185  ·  view source on GitHub ↗

markedpos returns the position recorded from the most recent mark_pos production.

(mtaillex mtailLexer)

Source from the content-addressed store, hash-verified

181// markedpos returns the position recorded from the most recent mark_pos
182// production.
183func markedpos(mtaillex mtailLexer) position.Position {
184 return mtaillex.(*parser).pos
185}
186
187// positionFromMark returns a position spanning from the last mark to the current position.
188func positionFromMark(mtaillex mtailLexer) position.Position {

Callers 2

positionFromMarkFunction · 0.85
ParseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected