tree-sitter-typescript icon indicating copy to clipboard operation
tree-sitter-typescript copied to clipboard

Unclear how to use `import_require_clause`

Open HirenHiranandani-at opened this issue 3 years ago • 1 comments

The following piece of code:

require('y')

... is valid but it is parsed into:

(call_expression function: (identifier) arguments: (arguments (string (string_fragment))))

Based on reading the definition of import_require_clause, it's unclear what matches import_require_clause.

HirenHiranandani-at avatar May 28 '22 01:05 HirenHiranandani-at

likely:

import x = require("x")

Gerrit0 avatar Aug 04 '22 03:08 Gerrit0