Class ImportsAndReadsParser

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<Result>
org.pkl.core.parser.antlr.PklParserBaseVisitor<T>
org.pkl.core.ast.builder.AbstractAstBuilder<@Nullable List<Pair<String,com.oracle.truffle.api.source.SourceSection>>>
org.pkl.core.ast.builder.ImportsAndReadsParser
All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<@Nullable List<Pair<String,com.oracle.truffle.api.source.SourceSection>>>, PklParserVisitor<@Nullable List<Pair<String,com.oracle.truffle.api.source.SourceSection>>>

public final class ImportsAndReadsParser extends AbstractAstBuilder<@Nullable List<Pair<String,com.oracle.truffle.api.source.SourceSection>>>
Collects module uris and resource uris imported within a module.

Gathers the following:

  • amends/extends URI's
  • import declarations
  • import expressions
  • read expressions