Mercurial > projects > dang
comparison tools/AstPrinter.d @ 102:cd066f3b539a new_gen
Parsing methods in structs - error on semantics though.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Thu, 08 May 2008 10:32:41 +0200 |
parents | fea8d61a2451 |
children | c3b24e7e8cf8 |
comparison
equal
deleted
inserted
replaced
101:fea8d61a2451 | 102:cd066f3b539a |
---|---|
66 auto structDecl = cast(StructDecl)decl; | 66 auto structDecl = cast(StructDecl)decl; |
67 printBeginLine("struct "); | 67 printBeginLine("struct "); |
68 printIdentifier(structDecl.identifier); | 68 printIdentifier(structDecl.identifier); |
69 printEndLine; | 69 printEndLine; |
70 printOpenBrace; | 70 printOpenBrace; |
71 foreach( var ; structDecl.vars) | 71 foreach( var ; structDecl.decls) |
72 printDecl(var); | 72 printDecl(var); |
73 printCloseBrace; | 73 printCloseBrace; |
74 break; | 74 break; |
75 | 75 |
76 case DeclType.ImportDecl: | 76 case DeclType.ImportDecl: |