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)
912
_ccRoot.StyleConnectorFn.Statements.
Add
(css);
937
_ccRoot.StyleConnectorFn.Statements.
Add
(cssBreak);
943
_ccRoot.StyleConnectorFn.Statements.
Add
(cssCase);
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));
1022
ccsConnector.TrueStatements.
Add
(casES);
1023
ccsConnector.TrueStatements.
Add
(casEvent);
1024
ccsConnector.TrueStatements.
Add
(casHandler);
1025
ccsConnector.TrueStatements.
Add
(new CodeExpressionStatement(cmieAdd));
1029
_ccRoot.StyleConnectorFn.Statements.
Add
(ccsConnector);
1072
_ccRoot.StyleConnectorFn.Statements.
Add
( csAddCLREvent );
1076
ccsConnector.TrueStatements.
Add
( csAddCLREvent );
1081
_ccRoot.StyleConnectorFn.Statements.
Add
(ccsConnector);
1099
_ccRoot.StyleConnectorFn.Statements.
Add
(cssBreak);
1106
_ccRoot.StyleConnectorFn.Statements.
Add
(css);
1144
_ccRoot.HookupFn.Statements.
Add
(css);
1173
_ccRoot.HookupFn.Statements.
Add
(cssCase);
1200
_ccRoot.HookupFn.Statements.
Add
(casName);
1204
ccsConnector.TrueStatements.
Add
(casName);
1216
_ccRoot.HookupFn.Statements.
Add
(csEvent);
1220
ccsConnector.TrueStatements.
Add
(csEvent);
1229
_ccRoot.HookupFn.Statements.
Add
(new CodeMethodReturnStatement());
1233
ccsConnector.TrueStatements.
Add
(new CodeMethodReturnStatement());
1234
_ccRoot.HookupFn.Statements.
Add
(ccsConnector);
1274
_ccRoot.HookupFn.Statements.
Add
(css);
1282
_ccRoot.HookupFn.Statements.
Add
(casContentLoaded);
2070
cmmEventHandlerHelper.Statements.
Add
(new CodeExpressionStatement(cmieOnEvent));
2581
cmmCD.Statements.
Add
(new CodeMethodReturnStatement(cmieCD));
2608
ccsCL.TrueStatements.
Add
(new CodeMethodReturnStatement());
2611
cmmLC.Statements.
Add
(ccsCL);
2624
cmmLC.Statements.
Add
(casCL);
2681
cmmLC.Statements.
Add
(cvdsresLocator);
2698
cmmLC.Statements.
Add
(cesLC);
2783
cmmCI.Statements.
Add
(new CodeMethodReturnStatement(cmieCI));
2812
cmmGPV.Statements.
Add
(new CodeMethodReturnStatement(cmieGPV));
2841
cmmSPV.Statements.
Add
(new CodeExpressionStatement(cmieSPV));
2894
cmmCD.Statements.
Add
(new CodeMethodReturnStatement(cceCD));
2919
cmmAEH.Statements.
Add
(new CodeExpressionStatement(cmieAEH));
3125
cmmMain.Statements.
Add
(cvds);
3145
_ccRoot.EnsureInitializeComponentFn.Statements.
Add
(csPropSet);
3158
_ccRoot.EnsureInitializeComponentFn.Statements.
Add
(csEvent);
3213
cmmMain.Statements.
Add
(new CodeExpressionStatement(cmieIT));
3225
cmmMain.Statements.
Add
(csRun);
3282
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);