Skip to content

Commit

Permalink
Making Type typechecks use class hierarchy.
Browse files Browse the repository at this point in the history
  • Loading branch information
aravij committed Jul 14, 2020
1 parent fac167b commit 8076660
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aibolit/ast_framework/_auxiliary_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from typing import Dict, Set, Type, NamedTuple

from javalang import tree
from javalang.ast import Node

from aibolit.ast_framework import ASTNodeType

Expand All @@ -31,7 +32,7 @@ class ASTNodeReference(NamedTuple):
node_index: int


javalang_to_ast_node_type: Dict[Type, ASTNodeType] = {
javalang_to_ast_node_type: Dict[Type[Node], ASTNodeType] = {
tree.Annotation: ASTNodeType.ANNOTATION,
tree.AnnotationDeclaration: ASTNodeType.ANNOTATION_DECLARATION,
tree.AnnotationMethod: ASTNodeType.ANNOTATION_METHOD,
Expand Down

0 comments on commit 8076660

Please sign in to comment.