Skip to content
This repository was archived by the owner on Nov 2, 2025. It is now read-only.

Commit ecba48f

Browse files
pqnCopybara Bot
andauthored
Project import generated by Copybara. (#12)
GitOrigin-RevId: 4193ed6e779a0eac007d7a330ff75a84721fda2f Co-authored-by: Copybara Bot <[email protected]>
1 parent d2f0f54 commit ecba48f

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

queries/javascript_imports.scm

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
;; Import info
2+
(import_statement
3+
(import_clause
4+
(namespace_import
5+
(identifier) @import.namespace
6+
)?
7+
(identifier)? @import.default
8+
(named_imports
9+
.
10+
(
11+
[
12+
_
13+
(import_specifier
14+
name: (identifier) @import.named.source
15+
alias: (identifier)? @import.named.alias
16+
)
17+
]
18+
)*
19+
)?
20+
)?
21+
source: (string) @name
22+
) @definition.import

queries/typescript_imports.scm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
;; Import info
2+
;; Import require() statement that is Typescript exclusive.
3+
(import_statement
4+
(import_require_clause
5+
(identifier) @import.default
6+
source: (string) @name
7+
)
8+
) @definition.import

0 commit comments

Comments
 (0)