Appearance
| 1 | namespace Syntax.Trees.Definitions is | |
| 2 | use Source; | |
| 3 | ||
| 4 | class NAMESPACE( | |
| 5 | location: LOCATION, | |
| 6 | name: Identifiers.Identifier public, | |
| 7 | body: Definitions.LIST public, | |
| 8 | is_compiler_generated: bool | |
| 9 | ): Definition, ScopeCarrier is | |
| 10 | scope: Semantic.Scope? public; | |
| 11 | ||
| 12 | super(location); | |
| 13 | ||
| 14 | accept(visitor: Visitor) is | |
| 15 | visitor.visit(self); | |
| 16 | si | |
| 17 | ||
| 18 | walk(visitor: Visitor) is | |
| 19 | if !visitor.pre(self) then | |
| 20 | name.walk(visitor); | |
| 21 | body.walk(visitor); | |
| 22 | fi | |
| 23 | ||
| 24 | accept(visitor); | |
| 25 | si | |
| 26 | si | |
| 27 | si |