Пример #1
0
 public override void VisitAssembly(IAssemblySymbol symbol)
 {
     _output.AppendLine(new string(' ', 2 * _indent) + symbol.GetType().Name + " " + symbol.Name);
     _indent++;
     VisitChildren(symbol.Modules);
     _indent--;
 }
Пример #2
0
 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);
 }
Пример #3
0
        /// <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);
        }