MCPcopy Create free account
hub / github.com/angular/angular / parseLogicalOr

Method parseLogicalOr

packages/compiler/src/expression_parser/parser.ts:919–928  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

917 }
918
919 private parseLogicalOr(): AST {
920 // '||'
921 const start = this.inputIndex;
922 let result = this.parseLogicalAnd();
923 while (this.consumeOptionalOperator('||')) {
924 const right = this.parseLogicalAnd();
925 result = new Binary(this.span(start), this.sourceSpan(start), '||', result, right);
926 }
927 return result;
928 }
929
930 private parseLogicalAnd(): AST {
931 // '&&'

Callers 1

parseConditionalMethod · 0.95

Calls 4

parseLogicalAndMethod · 0.95
spanMethod · 0.95
sourceSpanMethod · 0.95

Tested by

no test coverage detected