-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle O.this outside of it's definition
- Loading branch information
1 parent
02c6f81
commit ff2455a
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
object Parsers { | ||
enum Location(val inParens: Boolean, val inPattern: Boolean, val inArgs: Boolean): | ||
case InParens extends Location(true, false, false) | ||
case InArgs extends Location(true, false, true) | ||
case InPattern extends Location(false, true, false) | ||
case InGuard extends Location(false, false, false) | ||
case InPatternArgs extends Location(false, true, true) // InParens not true, since it might be an alternative | ||
case InBlock extends Location(false, false, false) | ||
case ElseWhere extends Location(false, false, false) | ||
} |