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