-
-
Notifications
You must be signed in to change notification settings - Fork 661
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract typer_pass to avoid extra dependencies
- Loading branch information
Showing
6 changed files
with
21 additions
and
20 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
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,14 @@ | ||
type typer_pass = | ||
| PBuildModule (* build the module structure and setup module type parameters *) | ||
| PBuildClass (* build the class structure *) | ||
| PConnectField (* handle associated fields, which may affect each other. E.g. a property and its getter *) | ||
| PTypeField (* type the class field, allow access to types structures *) | ||
| PCheckConstraint (* perform late constraint checks with inferred types *) | ||
| PForce (* usually ensure that lazy have been evaluated *) | ||
| PFinal (* not used, only mark for finalize *) | ||
|
||
let all_typer_passes = [ | ||
PBuildModule;PBuildClass;PConnectField;PTypeField;PCheckConstraint;PForce;PFinal | ||
] | ||
|
||
let all_typer_passes_length = List.length all_typer_passes |
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