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

Method Error

php7/parser.go:45–54  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

43}
44
45func (l *Parser) Error(msg string) {
46 pos := &position.Position{
47 StartLine: l.currentToken.StartLine,
48 EndLine: l.currentToken.EndLine,
49 StartPos: l.currentToken.StartPos,
50 EndPos: l.currentToken.EndPos,
51 }
52
53 l.Lexer.AddError(errors.NewError(msg, pos))
54}
55
56func (l *Parser) WithFreeFloating() {
57 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