public interface StmtResolver
Resolves expressions inside stmts, after
StmtShallowResolver-
方法概要
静态方法修饰符和类型方法说明static Contextstatic @Nullable DefVar<?,?> findPatternDef(Context context, org.aya.util.error.SourcePos namePos, String name) static Pattern.Clausematchy(Pattern.Clause match, @NotNull Context context, @NotNull ExprResolver bodyResolver) static voidresolveBind(@NotNull kala.collection.SeqLike<@NotNull Stmt> contents, @NotNull ResolveInfo info) static voidresolveBind(@NotNull Stmt stmt, @NotNull ResolveInfo info) static voidresolveStmt(@NotNull kala.collection.SeqLike<@NotNull Stmt> stmt, @NotNull ResolveInfo info) static voidresolveStmt(@NotNull Stmt stmt, @NotNull ResolveInfo info) static @NotNull Patternsubpatterns(@NotNull kala.value.MutableValue<Context> ctx, Pattern pat) static voidvisitBind(@NotNull DefVar<?, ?> selfDef, @NotNull BindBlock bind, @NotNull ResolveInfo info)
-
方法详细资料
-
resolveStmt
static void resolveStmt(@NotNull @NotNull kala.collection.SeqLike<@NotNull Stmt> stmt, @NotNull @NotNull ResolveInfo info) -
resolveStmt
- API Note:
- Note that this function MUTATES the stmt if it's a Decl.
-
visitBind
static void visitBind(@NotNull @NotNull DefVar<?, ?> selfDef, @NotNull @NotNull BindBlock bind, @NotNull @NotNull ResolveInfo info) -
resolveBind
static void resolveBind(@NotNull @NotNull kala.collection.SeqLike<@NotNull Stmt> contents, @NotNull @NotNull ResolveInfo info) -
resolveBind
-
matchy
static Pattern.Clause matchy(@NotNull Pattern.Clause match, @NotNull @NotNull Context context, @NotNull @NotNull ExprResolver bodyResolver) -
subpatterns
-
bindAs
-
resolve
-
findPatternDef
-