* Converts a name lex token into a name parse node.
()
| 1910 | * Converts a name lex token into a name parse node. |
| 1911 | */ |
| 1912 | parseName() { |
| 1913 | const token = this.expectToken(_tokenKind.TokenKind.NAME); |
| 1914 | return this.node(token, { |
| 1915 | kind: _kinds.Kind.NAME, |
| 1916 | value: token.value |
| 1917 | }); |
| 1918 | } |
| 1919 | // Implements the parsing rules in the Document section. |
| 1920 | /** |
| 1921 | * Document : Definition+ |
no test coverage detected