Skip to content

Commit

Permalink
pat: some doc
Browse files Browse the repository at this point in the history
  • Loading branch information
HoshinoTented committed Jan 4, 2025
1 parent d806db6 commit 66bd092
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base/src/main/java/org/aya/tyck/pat/PatternTycker.java
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@ public enum Kind {
patterns.next(); // consume pattern
}

// now: ! patterns.hasNext()
// or patterns.hasNext() && ! telescope.hasNext() && patterns.isFromPusheen()
// or patterns.hasNext() && telescope.hasNext() && patterns.isFromPusheen() && telescope.isFromPusheen()

// all not pusheen patterns have their parameters

// is there any explicit parameters?
var generated = findNextParam(null, p ->
p.explicit()
Expand Down

0 comments on commit 66bd092

Please sign in to comment.