Differences From Artifact [55043f61f436485a]:
- File
polemy/ast.d
- 2010-11-24 03:50:04 - part of checkin [16abe21957] on branch trunk - added documentation comment to polemy.ast so that it also works for @macro users of Polemy. (user: kinaba) [annotate]
To Artifact [98d6a7a3304f7043]:
- File
polemy/ast.d
- 2010-11-24 13:22:04 - part of checkin [f9c31f3cd8] on branch trunk - Fixed the null dereference bug when directly wrote "case 1 when 2: 3" in REPL. It was due to null LexPosition in the AST. Now AST.pos !is null is an invariant of AST. (user: kinaba) [annotate]
11 11
12 /// 12 ///
13 abstract class AST 13 abstract class AST
14 { 14 {
15 LexPosition pos; /// 15 LexPosition pos; ///
16 16
17 mixin SimpleConstructor; 17 mixin SimpleConstructor;
> 18 invariant(){ assert(pos !is null);}
18 } 19 }
19 20
20 /// AST node for integer literal 21 /// AST node for integer literal
21 class Int : AST 22 class Int : AST
22 { 23 {
23 BigInt data; /// 24 BigInt data; ///
24 25