Пример #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);
 }