public override void VisitAssembly(IAssemblySymbol symbol) { _output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); _indent++; VisitChildren(symbol.Modules); _indent--; }
public override int VisitAssembly(IAssemblySymbol symbol, StringBuilder argument) { argument.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name); _indent++; VisitChildren(symbol.Modules, argument); _indent--; return(_indent); }
/// <summary> /// Sets the <see cref="Compilation.Assembly"/> of the specified <paramref name="compilation"/> /// to the given <paramref name="assembly"/>. /// </summary> internal static void SetAssembly(this CSharpCompilation compilation, IAssemblySymbol assembly) { Debug.Assert(assembly.GetType().Name == "SourceAssemblySymbol"); LazySetAssembly.Value(compilation, assembly); }