Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/main/java/com/ibm/northstar/SymbolTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ private static Pair<String, Callable> processCallableDeclaration(CallableDeclara
List<String> classFields, String typeName) {
Callable callableNode = new Callable();

// add callable signature
callableNode.setSignature(callableDecl.getSignature().asString());

// add comment associated with method/constructor
callableNode.setComment(callableDecl.getComment().isPresent() ? callableDecl.getComment().get().asString() : "");

Expand Down Expand Up @@ -435,7 +438,7 @@ private static String resolveExpression(Expression expression) {
if (resolvedType.isReferenceType() || resolvedType.isUnionType()) {
return resolvedType.describe();
}
} catch (UnsolvedSymbolException | IllegalStateException exception) {
} catch (RuntimeException exception) {
Log.warn("Could not resolve expression: "+expression+"\n"+exception.getMessage());
}
return "";
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/ibm/northstar/entities/Callable.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@Data
public class Callable {
private String signature;
private String comment;
private List<String> annotations;
private List<String> modifiers;
Expand Down