1 type derived from CodeCompileUnit
System.CodeDom (1)
System\CodeDom\CodeSnippetCompileUnit.cs (1)
6public class CodeSnippetCompileUnit : CodeCompileUnit
8 instantiations of CodeCompileUnit
Microsoft.Build.Tasks.Core (3)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
251CodeCompileUnit codeCompileUnit = new CodeCompileUnit();
system.design\stronglytypedresourcebuilder.cs (1)
192var ccu = new CodeCompileUnit();
WriteCodeFragment.cs (1)
165var unit = new CodeCompileUnit();
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (3)
624CodeCompileUnit ccu = new CodeCompileUnit(); 2970CodeCompileUnit ccu = new CodeCompileUnit(); 3286CodeCompileUnit ccu = new CodeCompileUnit();
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (1)
63public CodeCompileUnit CodeCompileUnit => _codeCompileUnit ??= new CodeCompileUnit();
System.Windows.Forms.Design (1)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
358CodeCompileUnit codeCompileUnit = new();
99 references to CodeCompileUnit
Microsoft.Build.Tasks.Core (8)
GenerateResource.cs (1)
3457CodeCompileUnit ccu = StronglyTypedResourceBuilder.Create(
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
251CodeCompileUnit codeCompileUnit = new CodeCompileUnit();
system.design\stronglytypedresourcebuilder.cs (5)
114internal static CodeCompileUnit Create(Dictionary<string, IResource> resourceList, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, bool internalClass, out String[] unmatchable) 136private static CodeCompileUnit InternalCreate(Dictionary<String, ResourceData> resourceList, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, bool internalClass, out String[] unmatchable) 192var ccu = new CodeCompileUnit(); 261internal static CodeCompileUnit Create(String resxFile, String baseName, String generatedCodeNamespace, CodeDomProvider codeProvider, bool internalClass, out String[] unmatchable) 267internal static CodeCompileUnit Create(String resxFile, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, bool internalClass, out String[] unmatchable)
WriteCodeFragment.cs (1)
165var unit = new CodeCompileUnit();
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (3)
624CodeCompileUnit ccu = new CodeCompileUnit(); 2970CodeCompileUnit ccu = new CodeCompileUnit(); 3286CodeCompileUnit ccu = new CodeCompileUnit();
System (1)
src\libraries\shims\System\ref\System.cs (1)
46[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeCompileUnit))]
System.CodeDom (39)
Microsoft\CSharp\CSharpCodeGenerator.cs (11)
2139private void GenerateNamespaces(CodeCompileUnit e) 2421private void GenerateCompileUnit(CodeCompileUnit e) 2428private void GenerateCompileUnitStart(CodeCompileUnit e) 2489private void GenerateCompileUnitEnd(CodeCompileUnit e) 2903CompilerResults ICodeCompiler.CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit e) 2999CompilerResults ICodeCompiler.CompileAssemblyFromDomBatch(CompilerParameters options, CodeCompileUnit[] ea) 3016private CompilerResults FromDom(CompilerParameters options, CodeCompileUnit e) 3023return FromDomBatch(options, new CodeCompileUnit[1] { e }); 3055private CompilerResults FromDomBatch(CompilerParameters options, CodeCompileUnit[] ea) 3088private static void ResolveReferencedAssemblies(CompilerParameters options, CodeCompileUnit e) 3213void ICodeGenerator.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o)
Microsoft\VisualBasic\VBCodeGenerator.cs (4)
2170private static bool AllowLateBound(CodeCompileUnit e) 2182private static bool RequireVariableDeclaration(CodeCompileUnit e) 2202protected override void GenerateCompileUnitStart(CodeCompileUnit e) 2234protected override void GenerateCompileUnit(CodeCompileUnit e)
System\CodeDom\Compiler\CodeCompiler.cs (6)
11CompilerResults ICodeCompiler.CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit e) 106CompilerResults ICodeCompiler.CompileAssemblyFromDomBatch(CompilerParameters options, CodeCompileUnit[] ea) 127protected virtual CompilerResults FromDom(CompilerParameters options, CodeCompileUnit e) 134return FromDomBatch(options, new CodeCompileUnit[1] { e }); 164protected virtual CompilerResults FromDomBatch(CompilerParameters options, CodeCompileUnit[] ea) 197private static void ResolveReferencedAssemblies(CompilerParameters options, CodeCompileUnit e)
System\CodeDom\Compiler\CodeDomProvider.cs (3)
136public virtual CompilerResults CompileAssemblyFromDom(CompilerParameters options, params CodeCompileUnit[] compilationUnits) => 169public virtual void GenerateCodeFromCompileUnit(CodeCompileUnit compileUnit, TextWriter writer, CodeGeneratorOptions options) => 180public virtual CodeCompileUnit Parse(TextReader codeStream) =>
System\CodeDom\Compiler\CodeGenerator.cs (5)
227protected void GenerateNamespaces(CodeCompileUnit e) 310void ICodeGenerator.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o) 797protected virtual void GenerateCompileUnit(CodeCompileUnit e) 1580protected virtual void GenerateCompileUnitStart(CodeCompileUnit e) 1593protected virtual void GenerateCompileUnitEnd(CodeCompileUnit e)
System\CodeDom\Compiler\CodeParser.cs (1)
10public abstract CodeCompileUnit Parse(TextReader codeStream);
System\CodeDom\Compiler\CodeValidator.cs (5)
20if (e is CodeCompileUnit) 22ValidateCodeCompileUnit((CodeCompileUnit)e); 101private void ValidateCodeCompileUnit(CodeCompileUnit e) 116private void ValidateCompileUnitStart(CodeCompileUnit e) 124private void ValidateNamespaces(CodeCompileUnit e)
System\CodeDom\Compiler\ICodeCompiler.cs (2)
8CompilerResults CompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit compilationUnit); 11CompilerResults CompileAssemblyFromDomBatch(CompilerParameters options, CodeCompileUnit[] compilationUnits);
System\CodeDom\Compiler\ICodeGenerator.cs (1)
19void GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o);
System\CodeDom\Compiler\ICodeParser.cs (1)
10CodeCompileUnit Parse(TextReader codeStream);
System.Runtime.Serialization.Schema (17)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
36private readonly CodeCompileUnit _codeCompileUnit; 41internal CodeExporter(DataContractSet dataContractSet, ImportOptions? options, CodeCompileUnit codeCompileUnit)
System\Runtime\Serialization\Schema\ISerializationCodeDomSurrogateProvider.cs (2)
20/// <param name="compileUnit">The <see cref="CodeCompileUnit"/> that contains the other code generated during schema import.</param> 22CodeTypeDeclaration ProcessImportedType(CodeTypeDeclaration typeDeclaration, CodeCompileUnit compileUnit);
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (13)
32private CodeCompileUnit _codeCompileUnit = null!; // Not directly referenced. Always lazy initialized by property getter. 47/// Initializes a new instance of the <see cref="XsdDataContractImporter"/> class with the <see cref="System.CodeDom.CodeCompileUnit"/> that will be used to generate CLR code. 49/// <param name="codeCompileUnit">The <see cref="System.CodeDom.CodeCompileUnit"/> that will be used to store the code.</param> 50public XsdDataContractImporter(CodeCompileUnit codeCompileUnit) 61/// Gets a <see cref="System.CodeDom.CodeCompileUnit"/> used for storing the CLR types generated. 63public CodeCompileUnit CodeCompileUnit => _codeCompileUnit ??= new CodeCompileUnit(); 75/// Transforms the specified set of XML schemas contained in an <see cref="XmlSchemaSet"/> into a <see cref="System.CodeDom.CodeCompileUnit"/>. 88/// Transforms the specified set of schema types contained in an <see cref="XmlSchemaSet"/> into CLR types generated into a <see cref="System.CodeDom.CodeCompileUnit"/>. 105/// Transforms the specified XML schema type contained in an <see cref="XmlSchemaSet"/> into a <see cref="System.CodeDom.CodeCompileUnit"/>. 123/// Transforms the specified schema element in the set of specified XML schemas into a <see cref="System.CodeDom.CodeCompileUnit"/> and 145/// Gets a value that indicates whether the schemas contained in an <see cref="XmlSchemaSet"/> can be transformed into a <see cref="System.CodeDom.CodeCompileUnit"/>. 159/// Gets a value that indicates whether the specified set of types contained in an <see cref="XmlSchemaSet"/> can be transformed into CLR types generated into a <see cref="System.CodeDom.CodeCompileUnit"/>. 177/// Gets a value that indicates whether the schemas contained in an <see cref="XmlSchemaSet"/> can be transformed into a <see cref="System.CodeDom.CodeCompileUnit"/>.
System.Windows.Forms.Design (14)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
46private CodeCompileUnit? _documentCompileUnit; 786protected abstract CodeCompileUnit Parse(); 960protected abstract void Write(CodeCompileUnit unit);
System\ComponentModel\Design\Serialization\ICodeDomDesignerReload.cs (1)
25bool ShouldReloadDesigner(CodeCompileUnit newTree);
System\Resources\Tools\StronglyTypedResourceBuilder.cs (10)
101/// <returns>A <see cref="CodeCompileUnit"/> container.</returns> 102public static CodeCompileUnit Create( 139/// <returns>A <see cref="CodeCompileUnit"/> container.</returns> 154public static CodeCompileUnit Create( 223/// <returns>A <see cref="CodeCompileUnit"/> container.</returns> 224public static CodeCompileUnit Create( 258/// <returns>A <see cref="CodeCompileUnit"/> container.</returns> 259public static CodeCompileUnit Create( 304private static CodeCompileUnit InternalCreate( 358CodeCompileUnit codeCompileUnit = new();
System.Windows.Forms.Design.Tests (17)
System\Resources\Tools\CodeDomCompileHelper.cs (1)
58CodeCompileUnit compileUnit,
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (16)
193var compileUnit = StronglyTypedResourceBuilder.Create( 215var compileUnit = StronglyTypedResourceBuilder.Create( 246var compileUnit = StronglyTypedResourceBuilder.Create( 275var compileUnit = StronglyTypedResourceBuilder.Create( 307var compileUnit = StronglyTypedResourceBuilder.Create( 336var compileUnit = StronglyTypedResourceBuilder.Create( 358var compileUnit = StronglyTypedResourceBuilder.Create( 388var compileUnit = StronglyTypedResourceBuilder.Create( 416var compileUnit = StronglyTypedResourceBuilder.Create( 438var compileUnit = StronglyTypedResourceBuilder.Create( 469var compileUnit = StronglyTypedResourceBuilder.Create( 494var compileUnit = StronglyTypedResourceBuilder.Create( 522var compileUnit = StronglyTypedResourceBuilder.Create( 543var compileUnit = StronglyTypedResourceBuilder.Create( 628var compileUnit = StronglyTypedResourceBuilder.Create( 653CodeCompileUnit compileUnit,