MCPcopy
hub / github.com/jquery/esprima / parseIfClause

Method parseIfClause

src/parser.ts:2114–2119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2112 // https://tc39.github.io/ecma262/#sec-if-statement
2113
2114 parseIfClause(): Node.Statement {
2115 if (this.context.strict && this.matchKeyword('function')) {
2116 this.tolerateError(Messages.StrictFunction);
2117 }
2118 return this.parseStatement();
2119 }
2120
2121 parseIfStatement(): Node.IfStatement {
2122 const node = this.createNode();

Callers 1

parseIfStatementMethod · 0.95

Calls 3

matchKeywordMethod · 0.95
tolerateErrorMethod · 0.95
parseStatementMethod · 0.95

Tested by

no test coverage detected