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

Method _consumeAttribute

packages/compiler/src/ml_parser/lexer.ts:1013–1021  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1011 }
1012
1013 private _consumeAttribute() {
1014 this._consumeAttributeName();
1015 this._attemptCharCodeUntilFn(isNotWhitespace);
1016 if (this._attemptCharCode(chars.$EQ)) {
1017 this._attemptCharCodeUntilFn(isNotWhitespace);
1018 this._consumeAttributeValue();
1019 }
1020 this._attemptCharCodeUntilFn(isNotWhitespace);
1021 }
1022
1023 private _consumeAttributeName() {
1024 const attrNameStart = this._cursor.peek();

Callers 2

_consumeTagOpenMethod · 0.95
_consumeDirectiveMethod · 0.95

Calls 4

_consumeAttributeNameMethod · 0.95
_attemptCharCodeMethod · 0.95

Tested by

no test coverage detected