Mercurial > projects > dil
comparison trunk/src/main.d @ 676:c4e3a34e40f1
Added new module dil.doc.Doc.
Moved some doc related methods in dil.ast.Node to dil.doc.Doc.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 18 Jan 2008 19:28:37 +0100 |
parents | d422e5f2f3ea |
children | ff6971637f88 |
comparison
equal
deleted
inserted
replaced
675:e7811328e6c7 | 676:c4e3a34e40f1 |
---|---|
14 dil.ast.Visitor; | 14 dil.ast.Visitor; |
15 import dil.semantic.Module; | 15 import dil.semantic.Module; |
16 import dil.semantic.Symbols; | 16 import dil.semantic.Symbols; |
17 import dil.semantic.Pass1; | 17 import dil.semantic.Pass1; |
18 import dil.translator.German; | 18 import dil.translator.German; |
19 import dil.doc.Doc; | |
19 import dil.Messages; | 20 import dil.Messages; |
20 import dil.Settings; | 21 import dil.Settings; |
21 import dil.SettingsLoader; | 22 import dil.SettingsLoader; |
22 import dil.CompilerInfo; | 23 import dil.CompilerInfo; |
23 import dil.Information; | 24 import dil.Information; |
63 | 64 |
64 void printSymbolTable(ScopeSymbol scopeSym) | 65 void printSymbolTable(ScopeSymbol scopeSym) |
65 { | 66 { |
66 foreach (member; scopeSym.members) | 67 foreach (member; scopeSym.members) |
67 { | 68 { |
68 auto tokens = member.node.getDocComments(); | 69 auto tokens = getDocComments(member.node); |
69 char[] docText; | 70 char[] docText; |
70 foreach (token; tokens) | 71 foreach (token; tokens) |
71 docText ~= token.srcText; | 72 docText ~= token.srcText; |
72 Stdout.formatln("Id:{}, Symbol:{}, DocText:{}", member.ident.str, member.classinfo.name, docText); | 73 Stdout.formatln("Id:{}, Symbol:{}, DocText:{}", member.ident.str, member.classinfo.name, docText); |
73 } | 74 } |