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