mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
use the TYPE_ONLY_IMPORT context
This commit is contained in:
@@ -1812,7 +1812,7 @@ public class ASTExtractor {
|
||||
public Label visit(ImportSpecifier nd, Context c) {
|
||||
Label lbl = super.visit(nd, c);
|
||||
visit(nd.getImported(), lbl, 0, IdContext.LABEL);
|
||||
visit(nd.getLocal(), lbl, 1, c.idcontext);
|
||||
visit(nd.getLocal(), lbl, 1, nd.hasTypeKeyword() ? IdContext.TYPE_ONLY_IMPORT : c.idcontext);
|
||||
if (nd.hasTypeKeyword()) {
|
||||
trapwriter.addTuple("has_type_keyword", lbl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user