MCPcopy Create free account
hub / github.com/aurelia/binding / err

Method err

src/parser.js:536–538  ·  view source on GitHub ↗

Throw error (defaults to unexpected token if no message provided)

(message = `Unexpected token ${this.raw}`, column = this.start)

Source from the content-addressed store, hash-verified

534
535 /** Throw error (defaults to unexpected token if no message provided) */
536 err(message = `Unexpected token ${this.raw}`, column = this.start) {
537 throw new Error(`Parser Error: ${message} at column ${column} in expression [${this.src}]`);
538 }
539
540 /** Consumes the current token if it matches the provided one and returns true, otherwise returns false */
541 opt(token) {

Callers 9

parseBindingBehaviorMethod · 0.95
parseExpressionMethod · 0.95
parseLeftHandSideMethod · 0.95
scanNumberMethod · 0.95
scanStringMethod · 0.95
scanTemplateMethod · 0.95
scanTemplateTailMethod · 0.95
expectMethod · 0.95
unexpectedCharacterFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected