87 references to Statements
Microsoft.Build.Tasks.Core (7)
CodeTaskFactory.cs (2)
397
executeMethod.
Statements
.Add(new CodeSnippetStatement(executeCode));
399
executeMethod.
Statements
.Add(new CodeMethodReturnStatement(new CodeFieldReferenceExpression(null, "_Success")));
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
237
executeMethod.
Statements
.Add(new CodeSnippetStatement(taskInfo.SourceCode));
238
executeMethod.
Statements
.Add(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(null, successProperty.Name)));
XamlTaskFactory\TaskGenerator.cs (3)
457
addToActiveSwitchList.
Statements
.Add(removeExisting);
492
addToActiveSwitchList.
Statements
.Add(removeExisting);
1199
addValidateRelationsMethod.
Statements
.Add(checkRequired);
PresentationBuildTasks (49)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (49)
908
_ccRoot.StyleConnectorFn.
Statements
.Add(css);
930
if (_ccRoot.StyleConnectorFn.
Statements
.Count > 1)
933
_ccRoot.StyleConnectorFn.
Statements
.Add(cssBreak);
939
_ccRoot.StyleConnectorFn.
Statements
.Add(cssCase);
955
Debug.Assert(_ccRoot.StyleConnectorFn.
Statements
.Count > 0);
956
ccsConnector = _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);
1092
if (_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);
1259
if (_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);
2066
cmmEventHandlerHelper.
Statements
.Add(new CodeExpressionStatement(cmieOnEvent));
2577
cmmCD.
Statements
.Add(new CodeMethodReturnStatement(cmieCD));
2607
cmmLC.
Statements
.Add(ccsCL);
2611
cmmLC.
Statements
.Insert(0, ccsCL);
2620
cmmLC.
Statements
.Add(casCL);
2624
cmmLC.
Statements
.Insert(1, casCL);
2677
cmmLC.
Statements
.Add(cvdsresLocator);
2694
cmmLC.
Statements
.Add(cesLC);
2779
cmmCI.
Statements
.Add(new CodeMethodReturnStatement(cmieCI));
2808
cmmGPV.
Statements
.Add(new CodeMethodReturnStatement(cmieGPV));
2837
cmmSPV.
Statements
.Add(new CodeExpressionStatement(cmieSPV));
2890
cmmCD.
Statements
.Add(new CodeMethodReturnStatement(cceCD));
2915
cmmAEH.
Statements
.Add(new CodeExpressionStatement(cmieAEH));
3121
cmmMain.
Statements
.Add(cvds);
3141
_ccRoot.EnsureInitializeComponentFn.
Statements
.Add(csPropSet);
3154
_ccRoot.EnsureInitializeComponentFn.
Statements
.Add(csEvent);
3209
cmmMain.
Statements
.Add(new CodeExpressionStatement(cmieIT));
3221
cmmMain.
Statements
.Add(csRun);
3278
cmmMain.
Statements
.Add(cvdsAppSplash);
3283
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);