Skip to content

Commit

Permalink
Move project description creation into its own method
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Apr 1, 2023
1 parent fb54884 commit 1433847
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ public EnsoProjectNode(
}

@Override
@CompilerDirectives.TruffleBoundary
public Object execute(VirtualFrame frame) {
return createProjectDescription();
}

@CompilerDirectives.TruffleBoundary
private Object createProjectDescription() {
var context = EnsoContext.get(this);
if (pkgOpt.isPresent()) {
Package<TruffleFile> pkg = pkgOpt.get();
Expand Down

0 comments on commit 1433847

Please sign in to comment.