java.lang.Object
org.aya.tyck.pat.PatternTycker
A Pattern Tycker for only one use.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPatternTycker(@NotNull ExprTycker exprTycker, Def.Signature<?> signature, @NotNull kala.collection.SeqView<org.aya.util.Arg<Pattern>> patterns) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasError()Start to tyck eachPatternwithDef.Signature.
-
Field Details
-
exprTycker
-
bodySubst
-
-
Constructor Details
-
PatternTycker
public PatternTycker(@NotNull @NotNull ExprTycker exprTycker, @NotNull Def.Signature<?> signature, @NotNull @NotNull kala.collection.SeqView<org.aya.util.Arg<Pattern>> patterns)
-
-
Method Details
-
tyck
@NotNull public PatternTycker.TyckResult tyck(@Nullable @Nullable Pattern outerPattern, @Nullable @Nullable Expr body, boolean resultIsProp) Start to tyck eachPatternwithDef.Signature. should be specified if stream is empty.- Parameters:
outerPattern- null if visiting the whole pattern (like `A, x, ctor a b`). This is only used for error reporting. For now, is used whensignatureis not empty butpatternsis empty, it is possible when matching parameters of Ctor.
-
hasError
public boolean hasError() -
mischa
-