14 types derived from CodeStatement
System (14)
compmod\system\codedom\CodeAssignStatement.cs (1)
27public class CodeAssignStatement : CodeStatement {
compmod\system\codedom\CodeAttachEventStatement.cs (1)
27public class CodeAttachEventStatement : CodeStatement {
compmod\system\codedom\CodeCommentStatement.cs (1)
25public class CodeCommentStatement : CodeStatement {
compmod\system\codedom\CodeConditionStatement.cs (1)
27public class CodeConditionStatement : CodeStatement {
compmod\system\codedom\CodeExpressionStatement.cs (1)
28public class CodeExpressionStatement : CodeStatement {
compmod\system\codedom\CodeGotoStatement.cs (1)
25public class CodeGotoStatement : CodeStatement {
compmod\system\codedom\CodeIterationStatement.cs (1)
27public class CodeIterationStatement : CodeStatement {
compmod\system\codedom\CodeLabeledStatement.cs (1)
25public class CodeLabeledStatement : CodeStatement {
compmod\system\codedom\CodeMethodReturnStatement.cs (1)
27public class CodeMethodReturnStatement : CodeStatement {
compmod\system\codedom\CodeRemoveEventStatement.cs (1)
27public class CodeRemoveEventStatement : CodeStatement {
compmod\system\codedom\CodeSnippetStatement.cs (1)
27public class CodeSnippetStatement : CodeStatement {
compmod\system\codedom\CodeThrowExceptionStatement.cs (1)
28public class CodeThrowExceptionStatement : CodeStatement {
compmod\system\codedom\CodeTryCatchFinallyStatement.cs (1)
26public class CodeTryCatchFinallyStatement : CodeStatement {
compmod\system\codedom\CodeVariableDeclarationStatement.cs (1)
27public class CodeVariableDeclarationStatement : CodeStatement {
197 references to CodeStatement
PresentationBuildTasks (9)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1074CodeStatement csAddCLREvent = AddCLREvent( eventTarget, null, cceTarget, mei ); 1218CodeStatement csEvent = AddCLREvent(cc, ceEvent, mei); 1583private void AddLinePragma(CodeStatement cs, int lineNumber) 1914private CodeStatement AddCLREvent(CodeContext cc, CodeExpression ce, MarkupEventInfo mei) 1920private CodeStatement AddCLREvent(Type eventTarget, CodeContext cc, CodeExpression ce, MarkupEventInfo mei) 1924CodeStatement csEvent = null; 3066CodeStatement csPropSet = new CodeAssignStatement(cprePropSet, ceValue); 3080CodeStatement csEvent = AddCLREvent(_ccRoot, ctre, mei); 3149CodeStatement csRun = new CodeExpressionStatement(cmieRun);
System (47)
compmod\microsoft\csharp\csharpcodeprovider.cs (3)
1047private void GenerateStatement(CodeStatement e) { 1127((ICodeGenerator)this).GenerateCodeFromStatement((CodeStatement)en.Current, output.InnerWriter, options); 3965void ICodeGenerator.GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o) {
compmod\system\codedom\CodeCatchClause.cs (1)
56public CodeCatchClause(string localName, CodeTypeReference catchExceptionType, params CodeStatement[] statements) {
compmod\system\codedom\CodeConditionStatement.cs (3)
45public CodeConditionStatement(CodeExpression condition, params CodeStatement[] trueStatements) { 56public CodeConditionStatement(CodeExpression condition, CodeStatement[] trueStatements, CodeStatement[] falseStatements) {
compmod\system\codedom\CodeIterationStatement.cs (7)
28private CodeStatement initStatement; 30private CodeStatement incrementStatement; 46public CodeIterationStatement(CodeStatement initStatement, CodeExpression testExpression, CodeStatement incrementStatement, params CodeStatement[] statements) { 59public CodeStatement InitStatement { 89public CodeStatement IncrementStatement {
compmod\system\codedom\CodeLabeledStatement.cs (3)
27private CodeStatement statement; 45public CodeLabeledStatement(string label, CodeStatement statement) { 65public CodeStatement Statement {
compmod\system\codedom\CodeStatementCollection.cs (18)
17/// A collection that stores <see cref='System.CodeDom.CodeStatement'/> objects. 46/// Initializes a new instance of <see cref='System.CodeDom.CodeStatementCollection'/> containing any array of <see cref='System.CodeDom.CodeStatement'/> objects. 49public CodeStatementCollection(CodeStatement[] value) { 54/// <para>Represents the entry at the specified index of the <see cref='System.CodeDom.CodeStatement'/>.</para> 56public CodeStatement this[int index] { 58return ((CodeStatement)(List[index])); 66/// <para>Adds a <see cref='System.CodeDom.CodeStatement'/> with the specified value to the 69public int Add(CodeStatement value) { 84public void AddRange(CodeStatement[] value) { 110/// <see cref='System.CodeDom.CodeStatementCollection'/> contains the specified <see cref='System.CodeDom.CodeStatement'/>.</para> 112public bool Contains(CodeStatement value) { 120public void CopyTo(CodeStatement[] array, int index) { 125/// <para>Returns the index of a <see cref='System.CodeDom.CodeStatement'/> in 128public int IndexOf(CodeStatement value) { 133/// <para>Inserts a <see cref='System.CodeDom.CodeStatement'/> into the <see cref='System.CodeDom.CodeStatementCollection'/> at the specified index.</para> 135public void Insert(int index, CodeStatement value) { 140/// <para> Removes a specific <see cref='System.CodeDom.CodeStatement'/> from the 143public void Remove(CodeStatement value) {
compmod\system\codedom\CodeTryCatchFinallyStatement.cs (3)
45public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses) { 56public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses, CodeStatement[] finallyStatements) {
compmod\system\codedom\compiler\CodeDOMProvider.cs (1)
224public virtual void GenerateCodeFromStatement(CodeStatement statement, TextWriter writer, CodeGeneratorOptions options) {
compmod\system\codedom\compiler\CodeGenerator.cs (3)
484void ICodeGenerator.GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o) { 887protected void GenerateStatement(CodeStatement e) { 967((ICodeGenerator)this).GenerateCodeFromStatement((CodeStatement)en.Current, output.InnerWriter, options);
compmod\system\codedom\compiler\CodeValidator.cs (4)
41else if (e is CodeStatement) { 42ValidateStatement((CodeStatement)e); 356private void ValidateStatement(CodeStatement e) { 410ValidateStatement((CodeStatement)en.Current);
compmod\system\codedom\compiler\ICodeGenerator.cs (1)
75void GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o);
System.Activities (19)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (19)
850CodeStatement[] conditionStatements = null; 862static CodeStatement[] GetRequiredLocationsConditionStatements(IList<string> requiredLocations) 873CodeStatement[] returnStatements = new CodeStatement[statementCollection.Count]; 981CodeStatement[] conditionStatements = null; 1033CodeStatement GenerateInitializeDataContextActivity() 1138CodeStatement[] GenerateReferenceExpressionInvocation(CompiledExpressionDescriptor descriptor, bool withLocationReferences, Dictionary<string, int> cacheIndicies) 1204CodeStatement[] returnStatements = new CodeStatement[compiledDataContextStatements.Count]; 1210CodeStatement[] GenerateValueExpressionInvocation(CompiledExpressionDescriptor descriptor, bool withLocationReferences, Dictionary<string, int> cacheIndicies) 1231CodeStatement[] returnStatements = new CodeStatement[compiledDataContextStatements.Count]; 1237CodeStatement[] GenerateStatementInvocation(CompiledExpressionDescriptor descriptor, bool withLocationReferences, Dictionary<string, int> cacheIndicies) 1259CodeStatement[] returnStatements = new CodeStatement[compiledDataContextStatements.Count]; 1542CodeStatement statement = new CodeMethodReturnStatement(new CodeSnippetExpression(expressionText)); 1636CodeStatement statement = new CodeSnippetStatement(expressionText); 2005new CodeStatement[] { setLocationsOffsetMethod }); 2241new CodeStatement[]
System.Data (28)
fx\src\data\System\Data\CodeGen\datacache.cs (28)
810CodeStatement getStmnt = Return(Cast(GetTypeName(DataType), Indexer(This(), Property(Field(This(), stTblFieldName), tableColumnName)))); 879new CodeStatement[] {Return(nullValueExpr)}, 880new CodeStatement[] {getStmnt} 1051new CodeStatement[] { 1084CodeStatement[] schemaBodyArray = new CodeStatement[schemaBody.Count]; 1089new CodeStatement[] { 1158new CodeStatement[] { 1483private static CodeStatement Stm(CodeExpression expr) { return new CodeExpressionStatement(expr);} 1485private static CodeStatement Return(CodeExpression expr) { return new CodeMethodReturnStatement(expr);} 1487private static CodeStatement Return() { return new CodeMethodReturnStatement();} 1489private static CodeStatement Assign(CodeExpression left, CodeExpression right) { return new CodeAssignStatement(left, right);} 1492private static CodeStatement Throw(Type exception, string arg, string inner) { 1496private static CodeStatement If(CodeExpression cond, CodeStatement[] trueStms, CodeStatement[] falseStms) { 1499private static CodeStatement If( CodeExpression cond, CodeStatement[] trueStms ) {return new CodeConditionStatement(cond, trueStms);} 1500private static CodeStatement If( CodeExpression cond, CodeStatement trueStm ) {return If( cond, new CodeStatement[] {trueStm });} 1531private static CodeStatement VariableDecl(Type type, String name) { return new CodeVariableDeclarationStatement(type, name); } 1532private static CodeStatement VariableDecl(String type, String name, CodeExpression initExpr) { return new CodeVariableDeclarationStatement(type, name, initExpr); } 1533private static CodeStatement VariableDecl(Type type, String name, CodeExpression initExpr) { return new CodeVariableDeclarationStatement(type, name, initExpr); } 1552 private static CodeStatement Try(CodeStatement tryStmnt, CodeCatchClause catchClause) { 1554 new CodeStatement[] {tryStmnt}, 1559 private static CodeCatchClause Catch(Type type, string name, CodeStatement catchStmnt) {
System.Data.Entity.Design (16)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (5)
369List<CodeStatement> additionalGetStatements = eventArgs.AdditionalGetStatements; 591CodeStatement nullConstructor = new CodeAssignStatement(variableReference, 595CodeStatement valueConstructor = new CodeAssignStatement(variableReference, 622new CodeStatement[] { valueConstructor, }, 623new CodeStatement[] { nullConstructor, }
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (2)
148List<CodeStatement> additionalSetStatements = eventArgs.AdditionalSetStatements; 254List<CodeStatement> additionalGetStatements = eventArgs.AdditionalGetStatements;
System\Data\EntityModel\Emitters\PropertyEmitter.cs (3)
194private void EmitPropertyGetter(CodeMemberProperty memberProperty, List<CodeStatement> additionalGetStatements) 286private void EmitPropertySetter(CodeMemberProperty memberProperty, List<CodeStatement> additionalSetStatements) 303private void EmitPropertySetterBody(CodeStatementCollection statements, List<CodeStatement> additionalSetStatements)
System\Data\EntityModel\PropertyGeneratedEventArgs.cs (6)
29private List<CodeStatement> _additionalGetStatements = new List<CodeStatement>(); 30private List<CodeStatement> _additionalSetStatements = new List<CodeStatement>(); 105public List<CodeStatement> AdditionalGetStatements 116public List<CodeStatement> AdditionalSetStatements
System.Data.Services.Design (21)
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
530List<CodeStatement> additionalGetStatements = eventArgs.AdditionalGetStatements;
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (4)
144List<CodeStatement> additionalSetStatements = eventArgs.AdditionalSetStatements; 186List<CodeStatement> additionalAfterSetStatements = eventArgs.AdditionalAfterSetStatements; 238foreach (CodeStatement s in eventArgs.AdditionalAfterSetStatements) 255List<CodeStatement> additionalGetStatements = eventArgs.AdditionalGetStatements;
System\Data\EntityModel\Emitters\PropertyEmitter.cs (7)
190private void EmitPropertyGetter(CodeMemberProperty memberProperty, List<CodeStatement> additionalGetStatements) 287new CodeStatement[] { 295new CodeStatement[] { 318private void EmitPropertySetter(CodeMemberProperty memberProperty, List<CodeStatement> additionalSetStatements, List<CodeStatement> additionalAfterSetStatements) 334private void EmitPropertySetterBody(CodeStatementCollection statements, List<CodeStatement> additionalSetStatements, List<CodeStatement> additionalAfterSetStatements)
System\Data\EntityModel\PropertyGeneratedEventArgs.cs (9)
26private List<CodeStatement> _additionalGetStatements = new List<CodeStatement>(); 27private List<CodeStatement> _additionalSetStatements = new List<CodeStatement>(); 28private List<CodeStatement> _additionalSetStatements2 = new List<CodeStatement>(); 105public List<CodeStatement> AdditionalGetStatements 117public List<CodeStatement> AdditionalSetStatements 129internal List<CodeStatement> AdditionalAfterSetStatements
System.ServiceModel (1)
System\ServiceModel\Description\ClientClassGenerator.cs (1)
920static CodeStatement CreateDelegateIfNotNull(CodeMemberField delegateField, CodeMemberMethod delegateMethod)
System.Web (15)
Compilation\BaseCodeDomTreeGenerator.cs (1)
785CodeStatement simpleAssignment = new CodeAssignStatement(
Compilation\BaseTemplateCodeDomTreeGenerator.cs (11)
61private CodeStatement GetOutputWriteStatement(CodeExpression expr, bool encode) { 90CodeStatement outputWriteStmt = GetOutputWriteStatement(expr, false /*encode*/); 415CodeStatement statement = pseSub.GetCodeStatement(this, ctrlRefExpr); 1322CodeStatement setDataBoundStringCall = new CodeExpressionStatement(methCallExpression); 1327foreach (CodeStatement stmt in topMethodStatements) { 1330foreach (CodeStatement stmt in otherMethodStatements) { 1421foreach (CodeStatement stmt in topStatements) { 1426foreach (CodeStatement stmt in otherStatements) { 1502CodeStatement outputWrite = GetOutputWriteStatement( 1540CodeStatement statement = statementBuilder.BuildStatement(new CodeArgumentReferenceExpression(renderMethodParameterName)); 1578CodeStatement simpleAssignment = new CodeAssignStatement(
Compilation\PageThemeCodeDomTreeGenerator.cs (1)
59private CodeStatement BuildControlSkinAssignmentStatement(
UI\CodeStatementBuilder.cs (1)
19public abstract CodeStatement BuildStatement(CodeArgumentReferenceExpression writerReferenceExpression);
UI\SimplePropertyEntry.cs (1)
62internal CodeStatement GetCodeStatement(BaseTemplateCodeDomTreeGenerator generator,
System.Web.Services (9)
System\Web\Services\Description\ProtocolImporter.cs (3)
687CodeStatement[] trueStatements = new CodeStatement[] { new CodeAssignStatement(urlPropertyReference, value) }; 692ctor.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[] { assignUrlStatement }));
System\Web\Services\Description\WebCodeGenerator.cs (6)
294CodeStatement[] trueStatements = new CodeStatement[2]; 311asyncCompleted.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[0])); 343CodeStatement[] trueStatements = new CodeStatement[] { new CodeAssignStatement(member, createDelegate) }; 344asyncCodeMethod.Statements.Add(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[0]));
System.Workflow.Activities (25)
Rules\Parser\Parser.cs (4)
1201CodeStatement statement = ParseAssignmentStatement(parserContext); 1217private CodeStatement ParseAssignmentStatement(ParserContext parserContext) 1219CodeStatement result = null; 2821private void ValidateStatement(ParserContext parserContext, CodeStatement statement)
Rules\RuleAction.cs (3)
210private CodeStatement codeDomStatement; 212public RuleStatementAction(CodeStatement codeDomStatement) 226public CodeStatement CodeDomStatement
Rules\Statements.cs (8)
19internal abstract bool Match(CodeStatement expression); 20internal abstract CodeStatement Clone(); 32internal static RuleCodeDomStatement Create(CodeStatement statement) 84internal override bool Match(CodeStatement comperand) 91internal override CodeStatement Clone() 108internal static RuleCodeDomStatement Create(CodeStatement statement) 224internal override bool Match(CodeStatement comperand) 232internal override CodeStatement Clone()
Rules\Walker.cs (10)
223private delegate RuleCodeDomStatement WrapperCreator(CodeStatement statement); 225private static RuleCodeDomStatement GetStatement(CodeStatement statement) 251internal static bool Validate(RuleValidation validation, CodeStatement statement) 257internal static void Execute(RuleExecution execution, CodeStatement statement) 263internal static void AnalyzeUsage(RuleAnalysis analysis, CodeStatement statement) 269internal static void Decompile(StringBuilder stringBuilder, CodeStatement statement) 275internal static bool Match(CodeStatement firstStatement, CodeStatement secondStatement) 292internal static CodeStatement Clone(CodeStatement statement)
System.Workflow.ComponentModel (7)
AuthoringOM\Serializer\ActivityCodeDomSerializer.cs (1)
52foreach (CodeStatement statement in retVal)
AuthoringOM\Serializer\ActivityTypeCodeDomSerializer.cs (3)
92CodeStatement[] codeStatements = new CodeStatement[method.Statements.Count]; 101foreach (CodeStatement s in codeStatements)
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (1)
125foreach (CodeStatement statement in codeStatements)
AuthoringOM\Serializer\SerializableTypeCodeDomSerializer.cs (2)
63else if (result is CodeStatement) 64statements.Add(result as CodeStatement);