mirror of
https://github.com/github/codeql.git
synced 2026-06-25 22:57:01 +02:00
Unified: Add import_declaration.scoped_import_kind
This commit is contained in:
@@ -1368,7 +1368,7 @@ module.exports = grammar({
|
||||
seq(
|
||||
field("modifiers", optional($.modifiers)),
|
||||
"import",
|
||||
optional($._import_kind),
|
||||
optional(field("scoped_import_kind", $._import_kind)),
|
||||
field("name", $.identifier)
|
||||
),
|
||||
_import_kind: ($) =>
|
||||
|
||||
@@ -351,6 +351,7 @@ named:
|
||||
import_declaration:
|
||||
modifiers?: modifiers
|
||||
name: identifier
|
||||
scoped_import_kind?: ["class", "enum", "func", "let", "protocol", "struct", "typealias", "var"]
|
||||
infix_expression:
|
||||
lhs: expression
|
||||
op: custom_operator
|
||||
|
||||
Reference in New Issue
Block a user