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

Method _consumeComponentName

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

Source from the content-addressed store, hash-verified

1011 }
1012
1013 private _consumeComponentName(): string[] {
1014 const nameStart = this._cursor.clone();
1015 while (isSelectorlessNameChar(this._cursor.peek())) {
1016 this._cursor.advance();
1017 }
1018 const name = this._cursor.getChars(nameStart);
1019 let prefix = '';
1020 let tagName = '';
1021 if (this._cursor.peek() === chars.$COLON) {
1022 this._cursor.advance();
1023 [prefix, tagName] = this._consumePrefixAndName(isNameEnd);
1024 }
1025 return [name, prefix, tagName];
1026 }
1027
1028 private _consumeAttribute() {
1029 this._consumeAttributeName();

Callers 2

_consumeTagCloseMethod · 0.95

Calls 6

_consumePrefixAndNameMethod · 0.95
isSelectorlessNameCharFunction · 0.85
cloneMethod · 0.65
peekMethod · 0.65
advanceMethod · 0.65
getCharsMethod · 0.65

Tested by

no test coverage detected