-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
43 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
$ENTRY CheckRepeatedVars { | ||
(e._ repeated repeated-maybe e._) (e.AST) | ||
= <Prout 'full repeated vars search enabled'>; | ||
(e._ repeated e._) (e.AST) | ||
= <Prout 'repeated vars in assignments only search enabled'>; | ||
(e._ repeated-maybe e._) (e.AST) | ||
= <Prout 'repeated vars in last sentences only search enabled'>; | ||
(e._) (e.AST) = <Prout 'no matched warningsIds, skipping repeated vars search'>; | ||
= <Prout 'repeated vars empty args'> | ||
} | ||
|
||
CheckRepeatedInLastSentences { | ||
= ; | ||
} | ||
|
||
CheckRepeatedInAssignments { | ||
= ; | ||
} | ||
|
||
CreateRepeatedVariableWarning { | ||
repeated t.SrcPos s.Mode e.Index | ||
= (Warning | ||
repeated | ||
t.SrcPos | ||
RepeatedVariable | ||
s.Mode | ||
e.Index | ||
); | ||
repeated-maybe t.SrcPos s.Mode e.Index | ||
= (Warning | ||
repeated-maybe | ||
t.SrcPos | ||
RepeatedVariableMaybe | ||
s.Mode | ||
e.Index | ||
); | ||
} |
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