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

Method _consumeComponentName

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

Source from the content-addressed store, hash-verified

996 }
997
998 private _consumeComponentName(): string[] {
999 const nameStart = this._cursor.clone();
1000 while (isSelectorlessNameChar(this._cursor.peek())) {
1001 this._cursor.advance();
1002 }
1003 const name = this._cursor.getChars(nameStart);
1004 let prefix = '';
1005 let tagName = '';
1006 if (this._cursor.peek() === chars.$COLON) {
1007 this._cursor.advance();
1008 [prefix, tagName] = this._consumePrefixAndName(isNameEnd);
1009 }
1010 return [name, prefix, tagName];
1011 }
1012
1013 private _consumeAttribute() {
1014 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