mirror of
https://github.com/github/codeql.git
synced 2026-04-20 22:44:52 +02:00
fix TypeExprKinds crashing on a ThisExpression
This commit is contained in:
@@ -7,6 +7,7 @@ import com.semmle.js.ast.Identifier;
|
||||
import com.semmle.js.ast.Literal;
|
||||
import com.semmle.js.ast.MemberExpression;
|
||||
import com.semmle.js.ast.TemplateElement;
|
||||
import com.semmle.js.ast.ThisExpression;
|
||||
import com.semmle.js.extractor.ASTExtractor.IdContext;
|
||||
import com.semmle.ts.ast.ArrayTypeExpr;
|
||||
import com.semmle.ts.ast.ConditionalTypeExpr;
|
||||
@@ -100,6 +101,11 @@ public class TypeExprKinds {
|
||||
return keywordTypeExpr;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer visit(ThisExpression nd, Void c) {
|
||||
return thisVarTypeAccess;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer visit(ArrayTypeExpr nd, Void c) {
|
||||
return arrayTypeExpr;
|
||||
|
||||
Reference in New Issue
Block a user