예제 #1
0
 public override void VisitModule(IModuleSymbol symbol)
 {
     _output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
     _indent++;
     VisitChildren(symbol.GlobalNamespace);
     _indent--;
 }
예제 #2
0
 public override int VisitModule(IModuleSymbol symbol, StringBuilder argument)
 {
     argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
     _indent++;
     VisitChildren(new[] { symbol.GlobalNamespace }, argument);
     _indent--;
     return(_indent);
 }