Appearance
| 1 | namespace Compiler is | |
| 2 | // Which function a build's program starts in: the name `--entry` | |
| 3 | // asks for, or the default, and whether one was found. | |
| 4 | class ENTRY_POINT is | |
| 5 | name: string public | |
| 6 | ||
| 7 | // Whether `--entry` named it. A build that asks for an entry point | |
| 8 | // by name does not want a file's top-level statements instead, so | |
| 9 | // the synthesised entry stops being a candidate when this is set. | |
| 10 | name_is_explicit: bool public | |
| 11 | ||
| 12 | seen: bool public | |
| 13 | ||
| 14 | init(name: string) is | |
| 15 | self.name = name | |
| 16 | si | |
| 17 | si | |
| 18 | si |