82 references to Statements
Microsoft.Build.Tasks.Core (2)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
237executeMethod.Statements.Add(new CodeSnippetStatement(taskInfo.SourceCode)); 238executeMethod.Statements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(null, successProperty.Name)));
PresentationBuildTasks (49)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (49)
910_ccRoot.StyleConnectorFn.Statements.Add(css); 932if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 935_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 941_ccRoot.StyleConnectorFn.Statements.Add(cssCase); 959Debug.Assert(_ccRoot.StyleConnectorFn.Statements.Count > 0); 960ccsConnector = _ccRoot.StyleConnectorFn.Statements[_ccRoot.StyleConnectorFn.Statements.Count - 1] as CodeConditionStatement; 976_ccRoot.StyleConnectorFn.Statements.Insert(0, cvdsES); 1015_ccRoot.StyleConnectorFn.Statements.Add(casES); 1016_ccRoot.StyleConnectorFn.Statements.Add(casEvent); 1017_ccRoot.StyleConnectorFn.Statements.Add(casHandler); 1018_ccRoot.StyleConnectorFn.Statements.Add(new CodeExpressionStatement(cmieAdd)); 1029_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1072_ccRoot.StyleConnectorFn.Statements.Add( csAddCLREvent ); 1081_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1096if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 1099_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 1106_ccRoot.StyleConnectorFn.Statements.Add(css); 1146_ccRoot.HookupFn.Statements.Add(css); 1175_ccRoot.HookupFn.Statements.Add(cssCase); 1204_ccRoot.HookupFn.Statements.Add(casName); 1220_ccRoot.HookupFn.Statements.Add(csEvent); 1233_ccRoot.HookupFn.Statements.Add(new CodeMethodReturnStatement()); 1238_ccRoot.HookupFn.Statements.Add(ccsConnector); 1267if (_ccRoot.HookupFn.Statements.Count == 1 && 1268_ccRoot.HookupFn.Statements[0] is CodeSnippetStatement) 1270_ccRoot.HookupFn.Statements.Clear(); 1278_ccRoot.HookupFn.Statements.Add(css); 1286_ccRoot.HookupFn.Statements.Add(casContentLoaded); 2068cmmEventHandlerHelper.Statements.Add(new CodeExpressionStatement(cmieOnEvent)); 2591cmmCD.Statements.Add(new CodeMethodReturnStatement(cmieCD)); 2623cmmLC.Statements.Add(ccsCL); 2627cmmLC.Statements.Insert(0, ccsCL); 2636cmmLC.Statements.Add(casCL); 2640cmmLC.Statements.Insert(1, casCL); 2693cmmLC.Statements.Add(cvdsresLocator); 2711cmmLC.Statements.Add(cesLC); 2806cmmCI.Statements.Add(new CodeMethodReturnStatement(cmieCI)); 2839cmmGPV.Statements.Add(new CodeMethodReturnStatement(cmieGPV)); 2872cmmSPV.Statements.Add(new CodeExpressionStatement(cmieSPV)); 2931cmmCD.Statements.Add(new CodeMethodReturnStatement(cceCD)); 2960cmmAEH.Statements.Add(new CodeExpressionStatement(cmieAEH)); 3166cmmMain.Statements.Add(cvds); 3186_ccRoot.EnsureInitializeComponentFn.Statements.Add(csPropSet); 3199_ccRoot.EnsureInitializeComponentFn.Statements.Add(csEvent); 3258cmmMain.Statements.Add(new CodeExpressionStatement(cmieIT)); 3272cmmMain.Statements.Add(csRun); 3329cmmMain.Statements.Add(cvdsAppSplash); 3334cmmMain.Statements.Add(cmieShowSplashScreen);
System.CodeDom (12)
Microsoft\CSharp\CSharpCodeGenerator.cs (4)
1312GenerateStatements(e.Statements); 1404GenerateStatements(e.Statements); 1800GenerateStatements(e.Statements); 1818GenerateStatements(e.Statements);
Microsoft\VisualBasic\VBCodeGenerator.cs (4)
1680GenerateVBStatements(e.Statements); 1706GenerateVBStatements(e.Statements); 1912GenerateVBStatements(e.Statements); 1928GenerateVBStatements(e.Statements);
System\CodeDom\Compiler\CodeValidator.cs (4)
272ValidateStatements(e.Statements); 323ValidateStatements(((CodeEntryPointMethod)e).Statements); 341ValidateStatements(e.Statements); 367ValidateStatements(e.Statements);
System.Runtime.Serialization.Schema (12)
System\Runtime\Serialization\Schema\CodeExporter.cs (12)
1730readXmlMethod.Statements.Add(setNode); 1745writeXmlMethod.Statements.Add( 1766getSchemaMethod.Statements.Add(new CodeMethodReturnStatement(NullReference)); 1781getSchemaStaticMethod.Statements.Add( 1789getSchemaStaticMethod.Statements.Add( 1809baseConstructor.Statements.Add(setObjectData); 1813baseConstructor.Statements.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(ThisReference, PropertyChangedEvent.Name), NullReference)); 1910getObjectDataMethod.Statements.Add(returnIfNull); 1911getObjectDataMethod.Statements.Add(getEnumerator); 1912getObjectDataMethod.Statements.Add(loop); 1963raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name))); 1965raisePropertyChangedEventMethod.Statements.Add(ifStatement);
System.Windows.Forms.Design (7)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
514existingMethod.Statements.Clear(); 515existingMethod.Statements.AddRange(newMethod.Statements);
System\ComponentModel\Design\Serialization\CodeMethodMap.cs (1)
25_targetStatements = Method.Statements;
System\ComponentModel\Design\Serialization\ComponentTypeCodeDomSerializer.cs (1)
41ctor.Statements.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), InitMethodName));
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
116foreach (CodeStatement statement in method.Statements) 134FillStatementTable(manager, _statementTable, names, method.Statements, declaration.Name);