* Returns a node that, if configured to do so, sets a "loc" field as a * location object, used to identify the place in the source that created a * given parsed object.
(startToken, node)
| 3072 | * given parsed object. |
| 3073 | */ |
| 3074 | node(startToken, node) { |
| 3075 | if (this._options.noLocation !== true) { |
| 3076 | node.loc = new _ast.Location( |
| 3077 | startToken, |
| 3078 | this._lexer.lastToken, |
| 3079 | this._lexer.source |
| 3080 | ); |
| 3081 | } |
| 3082 | return node; |
| 3083 | } |
| 3084 | /** |
| 3085 | * Determines if the next token is of a given kind |
| 3086 | */ |
no outgoing calls
no test coverage detected