Skip to content

Commit

Permalink
fixes #1901
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Dec 27, 2023
1 parent 954d148 commit f604f30
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/org/rascalmpl/library/lang/java/m3/internal/ASTConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,17 @@ public void postVisit(ASTNode node) {
return;
}
setKeywordParameter("src", getSourceLocation(node));
ISourceLocation decl = resolveBinding(node);
if (!decl.getScheme().equals("unknown")) {
setKeywordParameter("decl", decl);
}
if (getAdtType() != DATATYPE_RASCAL_AST_STATEMENT_NODE_TYPE) {
IValue type = resolveType(node);

setKeywordParameter("typ", type);
if (collectBindings) {
ISourceLocation decl = resolveBinding(node);
if (!decl.getScheme().equals("unknown")) {
setKeywordParameter("decl", decl);
}
if (getAdtType() != DATATYPE_RASCAL_AST_STATEMENT_NODE_TYPE) {
IValue type = resolveType(node);

setKeywordParameter("typ", type);
}
}
}

Expand Down

0 comments on commit f604f30

Please sign in to comment.