87 references to Statements
Microsoft.Build.Tasks.Core (7)
CodeTaskFactory.cs (2)
397executeMethod.Statements.Add(new CodeSnippetStatement(executeCode)); 399executeMethod.Statements.Add(new CodeMethodReturnStatement(new CodeFieldReferenceExpression(null, "_Success")));
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
237executeMethod.Statements.Add(new CodeSnippetStatement(taskInfo.SourceCode)); 238executeMethod.Statements.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(null, successProperty.Name)));
XamlTaskFactory\TaskGenerator.cs (3)
457addToActiveSwitchList.Statements.Add(removeExisting); 492addToActiveSwitchList.Statements.Add(removeExisting); 1199addValidateRelationsMethod.Statements.Add(checkRequired);
PresentationBuildTasks (49)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (49)
908_ccRoot.StyleConnectorFn.Statements.Add(css); 930if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 933_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 939_ccRoot.StyleConnectorFn.Statements.Add(cssCase); 955Debug.Assert(_ccRoot.StyleConnectorFn.Statements.Count > 0); 956ccsConnector = _ccRoot.StyleConnectorFn.Statements[_ccRoot.StyleConnectorFn.Statements.Count - 1] as CodeConditionStatement; 972_ccRoot.StyleConnectorFn.Statements.Insert(0, cvdsES); 1011_ccRoot.StyleConnectorFn.Statements.Add(casES); 1012_ccRoot.StyleConnectorFn.Statements.Add(casEvent); 1013_ccRoot.StyleConnectorFn.Statements.Add(casHandler); 1014_ccRoot.StyleConnectorFn.Statements.Add(new CodeExpressionStatement(cmieAdd)); 1025_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1068_ccRoot.StyleConnectorFn.Statements.Add( csAddCLREvent ); 1077_ccRoot.StyleConnectorFn.Statements.Add(ccsConnector); 1092if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 1095_ccRoot.StyleConnectorFn.Statements.Add(cssBreak); 1102_ccRoot.StyleConnectorFn.Statements.Add(css); 1140_ccRoot.HookupFn.Statements.Add(css); 1169_ccRoot.HookupFn.Statements.Add(cssCase); 1196_ccRoot.HookupFn.Statements.Add(casName); 1212_ccRoot.HookupFn.Statements.Add(csEvent); 1225_ccRoot.HookupFn.Statements.Add(new CodeMethodReturnStatement()); 1230_ccRoot.HookupFn.Statements.Add(ccsConnector); 1259if (_ccRoot.HookupFn.Statements.Count == 1 && 1260_ccRoot.HookupFn.Statements[0] is CodeSnippetStatement) 1262_ccRoot.HookupFn.Statements.Clear(); 1270_ccRoot.HookupFn.Statements.Add(css); 1278_ccRoot.HookupFn.Statements.Add(casContentLoaded); 2066cmmEventHandlerHelper.Statements.Add(new CodeExpressionStatement(cmieOnEvent)); 2577cmmCD.Statements.Add(new CodeMethodReturnStatement(cmieCD)); 2607cmmLC.Statements.Add(ccsCL); 2611cmmLC.Statements.Insert(0, ccsCL); 2620cmmLC.Statements.Add(casCL); 2624cmmLC.Statements.Insert(1, casCL); 2677cmmLC.Statements.Add(cvdsresLocator); 2694cmmLC.Statements.Add(cesLC); 2779cmmCI.Statements.Add(new CodeMethodReturnStatement(cmieCI)); 2808cmmGPV.Statements.Add(new CodeMethodReturnStatement(cmieGPV)); 2837cmmSPV.Statements.Add(new CodeExpressionStatement(cmieSPV)); 2890cmmCD.Statements.Add(new CodeMethodReturnStatement(cceCD)); 2915cmmAEH.Statements.Add(new CodeExpressionStatement(cmieAEH)); 3121cmmMain.Statements.Add(cvds); 3141_ccRoot.EnsureInitializeComponentFn.Statements.Add(csPropSet); 3154_ccRoot.EnsureInitializeComponentFn.Statements.Add(csEvent); 3209cmmMain.Statements.Add(new CodeExpressionStatement(cmieIT)); 3221cmmMain.Statements.Add(csRun); 3278cmmMain.Statements.Add(cvdsAppSplash); 3283cmmMain.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);