Module aya.base

Class PatternResolver

java.lang.Object
org.aya.resolve.visitor.PatternResolver
All Implemented Interfaces:
BiFunction<org.aya.util.error.SourcePos,org.aya.syntax.concrete.Pattern,org.aya.syntax.concrete.Pattern>, org.aya.util.error.PosedUnaryOperator<org.aya.syntax.concrete.Pattern>

public class PatternResolver extends Object implements org.aya.util.error.PosedUnaryOperator<org.aya.syntax.concrete.Pattern>
  • Constructor Summary

    Constructors
    Constructor
    Description
    PatternResolver(@NotNull Context context, @NotNull Consumer<org.aya.generic.stmt.TyckUnit> parentAdd)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.aya.syntax.concrete.Pattern
    apply(@NotNull org.aya.util.error.SourcePos pos, @NotNull org.aya.syntax.concrete.Pattern pat)
     
    @NotNull Context
     
    @NotNull org.aya.syntax.concrete.Pattern
    post(@NotNull org.aya.util.error.SourcePos pos, @NotNull org.aya.syntax.concrete.Pattern pat)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.BiFunction

    andThen

    Methods inherited from interface org.aya.util.error.PosedUnaryOperator

    apply, forceApply
  • Constructor Details

    • PatternResolver

      public PatternResolver(@NotNull @NotNull Context context, @NotNull @NotNull Consumer<org.aya.generic.stmt.TyckUnit> parentAdd)
  • Method Details

    • context

      @NotNull public @NotNull Context context()
    • apply

      @NotNull public @NotNull org.aya.syntax.concrete.Pattern apply(@NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull org.aya.syntax.concrete.Pattern pat)
      Specified by:
      apply in interface BiFunction<org.aya.util.error.SourcePos,org.aya.syntax.concrete.Pattern,org.aya.syntax.concrete.Pattern>
    • post

      @NotNull public @NotNull org.aya.syntax.concrete.Pattern post(@NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull org.aya.syntax.concrete.Pattern pat)