| | 24 | get order as int |
| | 25 | """ |
| | 26 | Subclasses can override to change their order with respect to other phases. |
| | 27 | Consecutive phases in the initial list of phases are kept in sequence with a "stable sort". |
| | 28 | Default is 100. |
| | 29 | """ |
| | 30 | return 100 |
| | 31 | |
| | 32 | pro stableOrder from var as int |
| | 33 | """ |
| | 34 | Used to implement a "stable sort". |
| | 35 | """ |
| | 36 | |
| | 37 | get willRunWithErrors as bool |
| | 38 | """ |
| | 39 | Returns true if the phase will run correctly even if previously run phases produced errors. |
| | 40 | Typically, phases will not want to run with errors because the AST nodes will in an |
| | 41 | incomplete state that the phase cannot rely on. Hence, the default is false. |
| | 42 | However, subclasses may override to return true if appropriate. |
| | 43 | """ |
| | 44 | return false |
| | 45 | |