108 references to Add
Microsoft.Build.Tasks.Core (10)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
237
executeMethod.Statements.
Add
(new CodeSnippetStatement(taskInfo.SourceCode));
238
executeMethod.Statements.
Add
(new CodeMethodReturnStatement(new CodePropertyReferenceExpression(null, successProperty.Name)));
642
property.GetStatements.
Add
(new CodeMethodReturnStatement(fieldReference));
650
property.SetStatements.
Add
(fieldAssign);
system.design\stronglytypedresourcebuilder.cs (6)
469
resMgr.GetStatements.
Add
(new CodeConditionStatement(isResMgrNull, init));
470
resMgr.GetStatements.
Add
(new CodeMethodReturnStatement(field_resMgr));
479
culture.GetStatements.
Add
(new CodeMethodReturnStatement(field_resCulture));
482
culture.SetStatements.
Add
(new CodeAssignStatement(field_resCulture, newCulture));
654
prop.GetStatements.
Add
(returnObj);
658
prop.GetStatements.
Add
(ret);
PresentationBuildTasks (46)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (46)
908
_ccRoot.StyleConnectorFn.Statements.
Add
(css);
933
_ccRoot.StyleConnectorFn.Statements.
Add
(cssBreak);
939
_ccRoot.StyleConnectorFn.Statements.
Add
(cssCase);
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));
1018
ccsConnector.TrueStatements.
Add
(casES);
1019
ccsConnector.TrueStatements.
Add
(casEvent);
1020
ccsConnector.TrueStatements.
Add
(casHandler);
1021
ccsConnector.TrueStatements.
Add
(new CodeExpressionStatement(cmieAdd));
1025
_ccRoot.StyleConnectorFn.Statements.
Add
(ccsConnector);
1068
_ccRoot.StyleConnectorFn.Statements.
Add
( csAddCLREvent );
1072
ccsConnector.TrueStatements.
Add
( csAddCLREvent );
1077
_ccRoot.StyleConnectorFn.Statements.
Add
(ccsConnector);
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);
1200
ccsConnector.TrueStatements.
Add
(casName);
1212
_ccRoot.HookupFn.Statements.
Add
(csEvent);
1216
ccsConnector.TrueStatements.
Add
(csEvent);
1225
_ccRoot.HookupFn.Statements.
Add
(new CodeMethodReturnStatement());
1229
ccsConnector.TrueStatements.
Add
(new CodeMethodReturnStatement());
1230
_ccRoot.HookupFn.Statements.
Add
(ccsConnector);
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));
2604
ccsCL.TrueStatements.
Add
(new CodeMethodReturnStatement());
2607
cmmLC.Statements.
Add
(ccsCL);
2620
cmmLC.Statements.
Add
(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);
System.CodeDom (3)
System\CodeDom\CodeStatementCollection.cs (3)
30
public int Add(CodeExpression value) =>
Add
(new CodeExpressionStatement(value));
41
Add
(value[i]);
55
Add
(value[i]);
System.Runtime.Serialization.Schema (19)
System\Runtime\Serialization\Schema\CodeExporter.cs (19)
1730
readXmlMethod.Statements.
Add
(setNode);
1766
getSchemaMethod.Statements.
Add
(new CodeMethodReturnStatement(NullReference));
1789
getSchemaStaticMethod.Statements.
Add
(
1809
baseConstructor.Statements.
Add
(setObjectData);
1813
baseConstructor.Statements.
Add
(new CodeAssignStatement(new CodePropertyReferenceExpression(ThisReference, PropertyChangedEvent.Name), NullReference));
1870
returnIfNull.TrueStatements.
Add
(new CodeMethodReturnStatement());
1907
loop.Statements.
Add
(getCurrent);
1908
loop.Statements.
Add
(addValue);
1910
getObjectDataMethod.Statements.
Add
(returnIfNull);
1911
getObjectDataMethod.Statements.
Add
(getEnumerator);
1912
getObjectDataMethod.Statements.
Add
(loop);
1942
extensionDataObjectProperty.GetStatements.
Add
(propertyGet);
1947
extensionDataObjectProperty.SetStatements.
Add
(propertySet);
1963
raisePropertyChangedEventMethod.Statements.
Add
(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name)));
1965
raisePropertyChangedEventMethod.Statements.
Add
(ifStatement);
2002
property.GetStatements.
Add
(propertyGet);
2023
ifStatement.TrueStatements.
Add
(propertySet);
2025
property.SetStatements.
Add
(ifStatement);
2028
property.SetStatements.
Add
(propertySet);
System.Windows.Forms.Design (30)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
43
completeStatements.
Add
(statement);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
186
statements.
Add
(varDecl);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
2818
statements.
Add
(statement);
System\ComponentModel\Design\Serialization\CodeMethodMap.cs (7)
56
ContainerStatements.
Add
(statement);
60
FieldAssignments.
Add
(fieldAssignment);
64
VariableAssignments.
Add
(variableAssignment);
68
LocalVariables.
Add
(statement);
75
BeginStatements.
Add
(statement);
79
EndStatements.
Add
(statement);
83
Statements.
Add
(statement);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
205
resultCollection.
Add
(resultStatement);
646
statements.
Add
(new CodeExpressionStatement(methodInvoke));
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (4)
242
statements.
Add
(local);
296
statements.
Add
(assign);
521
statements.
Add
(statement);
548
statements.
Add
(statement);
System\ComponentModel\Design\Serialization\ContainerCodeDomSerializer.cs (2)
63
statements.
Add
(var);
74
statements.
Add
(assign);
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
56
statements.
Add
(attach);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
210
statements.
Add
(cs);
351
statements.
Add
(assign);
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
299
statements.
Add
(new CodeVariableDeclarationStatement(typeof(ComponentResourceManager), ResourceManagerName, initExpression));
System\Resources\Tools\StronglyTypedResourceBuilder.cs (6)
621
resourceManagerProperty.GetStatements.
Add
(new CodeConditionStatement(isResourceManagerNull, assignNewResourceManager));
622
resourceManagerProperty.GetStatements.
Add
(new CodeMethodReturnStatement(resourceManagerField));
631
culture.GetStatements.
Add
(new CodeMethodReturnStatement(cultureInfoField));
634
culture.SetStatements.
Add
(new CodeAssignStatement(cultureInfoField, newCulture));
801
property.GetStatements.
Add
(returnObject);
805
property.GetStatements.
Add
(returnStatement);
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (2)
388
statements.
Add
(statement);
448
statements.
Add
(statement);