MCPcopy Index your code
hub / github.com/angular/angular / _consumeComponentName

Method _consumeComponentName

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

Source from the content-addressed store, hash-verified

979 }
980
981 private _consumeComponentName(): string[] {
982 const nameStart = this._cursor.clone();
983 while (isSelectorlessNameChar(this._cursor.peek())) {
984 this._cursor.advance();
985 }
986 const name = this._cursor.getChars(nameStart);
987 let prefix = '';
988 let tagName = '';
989 if (this._cursor.peek() === chars.$COLON) {
990 this._cursor.advance();
991 [prefix, tagName] = this._consumePrefixAndName(isNameEnd);
992 }
993 return [name, prefix, tagName];
994 }
995
996 private _consumeAttribute() {
997 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