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

Method _consumeAttribute

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

Source from the content-addressed store, hash-verified

1026 }
1027
1028 private _consumeAttribute() {
1029 this._consumeAttributeName();
1030 this._attemptCharCodeUntilFn(isNotWhitespace);
1031 if (this._attemptCharCode(chars.$EQ)) {
1032 this._attemptCharCodeUntilFn(isNotWhitespace);
1033 this._consumeAttributeValue();
1034 }
1035 this._attemptCharCodeUntilFn(isNotWhitespace);
1036 }
1037
1038 private _consumeAttributeName() {
1039 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