Skip to content

Commit

Permalink
Updating information about the ctx field
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Feb 6, 2025
1 parent 2f598f5 commit bad28dd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ final class EnsoModuleAST {

private final ASTNode root;

/** Underlying source file. May be null. */
/** Information about underlying source. */
private final IRSource<? extends IR> ctx;

private final Map<Integer, ASTNode> nodes = new HashMap<>();
Expand All @@ -54,6 +54,7 @@ final class EnsoModuleAST {

private EnsoModuleAST(IRSource<? extends IR> ctx, Map<UUID, Integer> nodeIds) {
this.nodeIds = nodeIds;
assert ctx != null;
this.ctx = ctx;
this.root = switch (ctx.ir()) {
case Module m -> buildTree(m);
Expand Down

0 comments on commit bad28dd

Please sign in to comment.