14 types derived from CodeStatement
System.CodeDom (14)
System\CodeDom\CodeAssignStatement.cs (1)
6
public class CodeAssignStatement :
CodeStatement
System\CodeDom\CodeAttachEventStatement.cs (1)
6
public class CodeAttachEventStatement :
CodeStatement
System\CodeDom\CodeCommentStatement.cs (1)
6
public class CodeCommentStatement :
CodeStatement
System\CodeDom\CodeConditionStatement.cs (1)
6
public class CodeConditionStatement :
CodeStatement
System\CodeDom\CodeExpressionStatement.cs (1)
6
public class CodeExpressionStatement :
CodeStatement
System\CodeDom\CodeGotoStatement.cs (1)
6
public class CodeGotoStatement :
CodeStatement
System\CodeDom\CodeIterationStatement.cs (1)
6
public class CodeIterationStatement :
CodeStatement
System\CodeDom\CodeLabeledStatement.cs (1)
6
public class CodeLabeledStatement :
CodeStatement
System\CodeDom\CodeMethodReturnStatement.cs (1)
6
public class CodeMethodReturnStatement :
CodeStatement
System\CodeDom\CodeRemoveEventStatement.cs (1)
6
public class CodeRemoveEventStatement :
CodeStatement
System\CodeDom\CodeSnippetStatement.cs (1)
6
public class CodeSnippetStatement :
CodeStatement
System\CodeDom\CodeThrowExceptionStatement.cs (1)
6
public class CodeThrowExceptionStatement :
CodeStatement
System\CodeDom\CodeTryCatchFinallyStatement.cs (1)
6
public class CodeTryCatchFinallyStatement :
CodeStatement
System\CodeDom\CodeVariableDeclarationStatement.cs (1)
6
public class CodeVariableDeclarationStatement :
CodeStatement
74 references to CodeStatement
Microsoft.Build.Tasks.Core (1)
system.design\stronglytypedresourcebuilder.cs (1)
465
var init = new
CodeStatement
[2];
PresentationBuildTasks (9)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1064
CodeStatement
csAddCLREvent = AddCLREvent( eventTarget, null, cceTarget, mei );
1208
CodeStatement
csEvent = AddCLREvent(cc, ceEvent, mei);
1633
private void AddLinePragma(
CodeStatement
cs, int lineNumber)
1963
private
CodeStatement
AddCLREvent(CodeContext cc, CodeExpression ce, MarkupEventInfo mei)
1969
private
CodeStatement
AddCLREvent(Type eventTarget, CodeContext cc, CodeExpression ce, MarkupEventInfo mei)
1973
CodeStatement
csEvent = null;
3137
CodeStatement
csPropSet = new CodeAssignStatement(cprePropSet, ceValue);
3151
CodeStatement
csEvent = AddCLREvent(_ccRoot, ctre, mei);
3220
CodeStatement
csRun = new CodeExpressionStatement(cmieRun);
System (1)
src\libraries\shims\System\ref\System.cs (1)
91
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.
CodeStatement
))]
System.CodeDom (36)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
532
private void GenerateStatement(
CodeStatement
e)
631
foreach (
CodeStatement
stmt in stmts)
3276
void ICodeGenerator.GenerateCodeFromStatement(
CodeStatement
e, TextWriter w, CodeGeneratorOptions o)
System\CodeDom\CodeCatchClause.cs (1)
25
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType, params
CodeStatement
[] statements)
System\CodeDom\CodeConditionStatement.cs (3)
10
public CodeConditionStatement(CodeExpression condition, params
CodeStatement
[] trueStatements)
16
public CodeConditionStatement(CodeExpression condition,
CodeStatement
[] trueStatements,
CodeStatement
[] falseStatements)
System\CodeDom\CodeIterationStatement.cs (5)
10
public CodeIterationStatement(
CodeStatement
initStatement, CodeExpression testExpression,
CodeStatement
incrementStatement, params
CodeStatement
[] statements)
18
public
CodeStatement
InitStatement { get; set; }
22
public
CodeStatement
IncrementStatement { get; set; }
System\CodeDom\CodeLabeledStatement.cs (2)
17
public CodeLabeledStatement(string label,
CodeStatement
statement)
29
public
CodeStatement
Statement { get; set; }
System\CodeDom\CodeStatementCollection.cs (10)
17
public CodeStatementCollection(
CodeStatement
[] value)
22
public
CodeStatement
this[int index]
24
get => (
CodeStatement
)List[index];
28
public int Add(
CodeStatement
value) => List.Add(value);
32
public void AddRange(
CodeStatement
[] value)
59
public bool Contains(
CodeStatement
value) => List.Contains(value);
61
public void CopyTo(
CodeStatement
[] array, int index) => List.CopyTo(array, index);
63
public int IndexOf(
CodeStatement
value) => List.IndexOf(value);
65
public void Insert(int index,
CodeStatement
value) => List.Insert(index, value);
67
public void Remove(
CodeStatement
value) => List.Remove(value);
System\CodeDom\CodeTryCatchFinallyStatement.cs (3)
10
public CodeTryCatchFinallyStatement(
CodeStatement
[] tryStatements, CodeCatchClause[] catchClauses)
16
public CodeTryCatchFinallyStatement(
CodeStatement
[] tryStatements, CodeCatchClause[] catchClauses,
CodeStatement
[] finallyStatements)
System\CodeDom\Compiler\CodeDomProvider.cs (1)
163
public virtual void GenerateCodeFromStatement(
CodeStatement
statement, TextWriter writer, CodeGeneratorOptions options) =>
System\CodeDom\Compiler\CodeGenerator.cs (3)
373
void ICodeGenerator.GenerateCodeFromStatement(
CodeStatement
e, TextWriter w, CodeGeneratorOptions o)
878
protected void GenerateStatement(
CodeStatement
e)
982
foreach (
CodeStatement
stmt in stmts)
System\CodeDom\Compiler\CodeValidator.cs (4)
40
else if (e is
CodeStatement
)
42
ValidateStatement((
CodeStatement
)e);
393
private void ValidateStatement(
CodeStatement
e)
467
foreach (
CodeStatement
stmt in stmts)
System\CodeDom\Compiler\ICodeGenerator.cs (1)
17
void GenerateCodeFromStatement(
CodeStatement
e, TextWriter w, CodeGeneratorOptions o);
System.Windows.Forms.Design (25)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (3)
41
else if (data is
CodeStatement
statement)
284
foreach (
CodeStatement
statement in statements)
334
foreach (
CodeStatement
cs in statements)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (5)
29
public virtual string? GetTargetComponentName(
CodeStatement
? statement, CodeExpression? expression, Type? targetType)
57
foreach (
CodeStatement
element in statements)
84
else if (codeObject is not
CodeStatement
)
87
string supportedTypes = $"{nameof(CodeExpression)}, {nameof(
CodeStatement
)}, {nameof(CodeStatementCollection)}";
100
protected object? DeserializeStatementToInstance(IDesignerSerializationManager manager,
CodeStatement
statement)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (6)
168
CodeStatement
? statement = manager.GetContext<
CodeStatement
>();
403
protected void DeserializeStatement(IDesignerSerializationManager manager,
CodeStatement
statement)
2389
if (result is
CodeStatement
statement)
2610
foreach (
CodeStatement
statement in statements)
2804
private static void AddStatement(IDictionary table, string name,
CodeStatement
statement)
System\ComponentModel\Design\Serialization\CodeMethodMap.cs (1)
52
foreach (
CodeStatement
statement in statements)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
203
if (result is
CodeStatement
resultStatement)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
426
foreach (
CodeStatement
statement in entry.Statements)
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
208
else if (result is
CodeStatement
cs)
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (4)
32
public override string? GetTargetComponentName(
CodeStatement
? statement, CodeExpression? expression, Type? type)
82
foreach (
CodeStatement
element in statements)
108
else if (codeObject is not
CodeStatement
)
111
string supportedTypes = $"{nameof(CodeExpression)}, {nameof(
CodeStatement
)}, {nameof(CodeStatementCollection)}";
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
116
foreach (
CodeStatement
statement in method.Statements)
152
foreach (
CodeStatement
statement in statements)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
615
CodeStatement
[] assignNewResourceManager =
System.Windows.Forms.Design.Tests (2)
CodeDomHelpers.cs (1)
42
if (o is
CodeStatement
cs)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (1)
1712
foreach (
CodeStatement
e in state0)