MCPcopy Create free account
hub / github.com/z7zmey/php-parser / Error

Method Error

php5/parser.go:46–55  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

44}
45
46func (l *Parser) Error(msg string) {
47 pos := &position.Position{
48 StartLine: l.currentToken.StartLine,
49 EndLine: l.currentToken.EndLine,
50 StartPos: l.currentToken.StartPos,
51 EndPos: l.currentToken.EndPos,
52 }
53
54 l.Lexer.AddError(errors.NewError(msg, pos))
55}
56
57func (l *Parser) WithFreeFloating() {
58 l.Lexer.SetWithFreeFloating(true)

Callers

nothing calls this directly

Implementers 2

Parserphp7/parser.go
Parserphp5/parser.go

Calls 2

NewErrorFunction · 0.92
AddErrorMethod · 0.65

Tested by

no test coverage detected