2 implementations of ICodeGenerator
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
16
internal sealed partial class CSharpCodeGenerator : ICodeCompiler,
ICodeGenerator
System\CodeDom\Compiler\CodeGenerator.cs (1)
10
public abstract class CodeGenerator :
ICodeGenerator
43 references to ICodeGenerator
System (1)
src\libraries\shims\System\ref\System.cs (1)
125
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.Compiler.
ICodeGenerator
))]
System.CodeDom (40)
Microsoft\CSharp\CSharpCodeGenerator.cs (13)
633
((
ICodeGenerator
)this).GenerateCodeFromStatement(stmt, _output.InnerWriter, _options);
1893
((
ICodeGenerator
)this).GenerateCodeFromType(c, _output.InnerWriter, _options);
1963
((
ICodeGenerator
)this).GenerateCodeFromType((CodeTypeDeclaration)member, _output.InnerWriter, _options);
2134
((
ICodeGenerator
)this).GenerateCodeFromType(currentClass, _output.InnerWriter, _options);
2143
((
ICodeGenerator
)this).GenerateCodeFromNamespace(n, _output.InnerWriter, _options);
2154
((
ICodeGenerator
)this).GenerateCodeFromExpression(arg.Value, _output.InnerWriter, _options);
2194
((
ICodeGenerator
)this).GenerateCodeFromExpression(current, _output.InnerWriter, _options);
3080
((
ICodeGenerator
)this).GenerateCodeFromCompileUnit(ea[i], sw, _options);
3157
void
ICodeGenerator
.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o)
3185
void
ICodeGenerator
.GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o)
3213
void
ICodeGenerator
.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o)
3248
void
ICodeGenerator
.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o)
3276
void
ICodeGenerator
.GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o)
Microsoft\CSharp\CSharpCodeProvider.cs (1)
36
public override
ICodeGenerator
CreateGenerator() => _generator;
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
401
((
ICodeGenerator
)this).GenerateCodeFromExpression(arg.Value, ((ExposedTabStringIndentedTextWriter)Output).InnerWriter, Options);
Microsoft\VisualBasic\VBCodeProvider.cs (1)
38
public override
ICodeGenerator
CreateGenerator() => _generator;
System\CodeDom\Compiler\CodeCompiler.cs (1)
189
((
ICodeGenerator
)this).GenerateCodeFromCompileUnit(ea[i], sw, Options);
System\CodeDom\Compiler\CodeDomProvider.cs (5)
120
public abstract
ICodeGenerator
CreateGenerator();
123
public virtual
ICodeGenerator
CreateGenerator(TextWriter output) => CreateGenerator();
125
public virtual
ICodeGenerator
CreateGenerator(string fileName) => CreateGenerator();
194
private
ICodeGenerator
CreateGeneratorHelper()
196
ICodeGenerator
generator = CreateGenerator();
System\CodeDom\Compiler\CodeGenerator.cs (18)
116
((
ICodeGenerator
)this).GenerateCodeFromType((CodeTypeDeclaration)member, _output.InnerWriter, _options);
231
((
ICodeGenerator
)this).GenerateCodeFromNamespace(n, _output.InnerWriter, _options);
248
((
ICodeGenerator
)this).GenerateCodeFromType(c, _output.InnerWriter, _options);
252
bool
ICodeGenerator
.Supports(GeneratorSupport support) => Supports(support);
254
void
ICodeGenerator
.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o)
282
void
ICodeGenerator
.GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o)
310
void
ICodeGenerator
.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o)
345
void
ICodeGenerator
.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o)
373
void
ICodeGenerator
.GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o)
429
bool
ICodeGenerator
.IsValidIdentifier(string value) => IsValidIdentifier(value);
431
void
ICodeGenerator
.ValidateIdentifier(string value) => ValidateIdentifier(value);
433
string
ICodeGenerator
.CreateEscapedIdentifier(string value) => CreateEscapedIdentifier(value);
435
string
ICodeGenerator
.CreateValidIdentifier(string value) => CreateValidIdentifier(value);
437
string
ICodeGenerator
.GetTypeOutput(CodeTypeReference type) => GetTypeOutput(type);
792
((
ICodeGenerator
)this).GenerateCodeFromType(currentClass, _output.InnerWriter, _options);
984
((
ICodeGenerator
)this).GenerateCodeFromStatement(stmt, _output.InnerWriter, _options);
1048
((
ICodeGenerator
)this).GenerateCodeFromExpression(arg.Value, _output.InnerWriter, _options);
1229
((
ICodeGenerator
)this).GenerateCodeFromExpression(current, _output.InnerWriter, _options);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (2)
41
private
ICodeGenerator
? _codeGenerator;
132
ICodeGenerator
codeGenerator = new Microsoft.CSharp.CSharpCodeProvider().CreateGenerator();