2 writes to Statements
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (2)
867
Statements
= { CodeThis.Invoke(initializeMethod.Name) },
886
Statements
= { CodeThis.Invoke(initializeMethod.Name) },
602 references to Statements
PresentationBuildTasks (49)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (49)
918
_ccRoot.StyleConnectorFn.
Statements
.Add(css);
940
if (_ccRoot.StyleConnectorFn.
Statements
.Count > 1)
943
_ccRoot.StyleConnectorFn.
Statements
.Add(cssBreak);
949
_ccRoot.StyleConnectorFn.
Statements
.Add(cssCase);
965
Debug.Assert(_ccRoot.StyleConnectorFn.
Statements
.Count > 0);
966
ccsConnector = _ccRoot.StyleConnectorFn.
Statements
[_ccRoot.StyleConnectorFn.
Statements
.Count - 1] as CodeConditionStatement;
982
_ccRoot.StyleConnectorFn.
Statements
.Insert(0, cvdsES);
1021
_ccRoot.StyleConnectorFn.
Statements
.Add(casES);
1022
_ccRoot.StyleConnectorFn.
Statements
.Add(casEvent);
1023
_ccRoot.StyleConnectorFn.
Statements
.Add(casHandler);
1024
_ccRoot.StyleConnectorFn.
Statements
.Add(new CodeExpressionStatement(cmieAdd));
1035
_ccRoot.StyleConnectorFn.
Statements
.Add(ccsConnector);
1078
_ccRoot.StyleConnectorFn.
Statements
.Add( csAddCLREvent );
1087
_ccRoot.StyleConnectorFn.
Statements
.Add(ccsConnector);
1102
if (_ccRoot.StyleConnectorFn.
Statements
.Count > 1)
1105
_ccRoot.StyleConnectorFn.
Statements
.Add(cssBreak);
1112
_ccRoot.StyleConnectorFn.
Statements
.Add(css);
1150
_ccRoot.HookupFn.
Statements
.Add(css);
1179
_ccRoot.HookupFn.
Statements
.Add(cssCase);
1206
_ccRoot.HookupFn.
Statements
.Add(casName);
1222
_ccRoot.HookupFn.
Statements
.Add(csEvent);
1235
_ccRoot.HookupFn.
Statements
.Add(new CodeMethodReturnStatement());
1240
_ccRoot.HookupFn.
Statements
.Add(ccsConnector);
1269
if (_ccRoot.HookupFn.
Statements
.Count == 1 &&
1270
_ccRoot.HookupFn.
Statements
[0] is CodeSnippetStatement)
1272
_ccRoot.HookupFn.
Statements
.Clear();
1280
_ccRoot.HookupFn.
Statements
.Add(css);
1288
_ccRoot.HookupFn.
Statements
.Add(casContentLoaded);
2017
cmmEventHandlerHelper.
Statements
.Add(new CodeExpressionStatement(cmieOnEvent));
2529
cmmCD.
Statements
.Add(new CodeMethodReturnStatement(cmieCD));
2559
cmmLC.
Statements
.Add(ccsCL);
2563
cmmLC.
Statements
.Insert(0, ccsCL);
2572
cmmLC.
Statements
.Add(casCL);
2576
cmmLC.
Statements
.Insert(1, casCL);
2606
cmmLC.
Statements
.Add(cvdsresLocator);
2623
cmmLC.
Statements
.Add(cesLC);
2708
cmmCI.
Statements
.Add(new CodeMethodReturnStatement(cmieCI));
2737
cmmGPV.
Statements
.Add(new CodeMethodReturnStatement(cmieGPV));
2766
cmmSPV.
Statements
.Add(new CodeExpressionStatement(cmieSPV));
2819
cmmCD.
Statements
.Add(new CodeMethodReturnStatement(cceCD));
2844
cmmAEH.
Statements
.Add(new CodeExpressionStatement(cmieAEH));
3050
cmmMain.
Statements
.Add(cvds);
3070
_ccRoot.EnsureInitializeComponentFn.
Statements
.Add(csPropSet);
3083
_ccRoot.EnsureInitializeComponentFn.
Statements
.Add(csEvent);
3138
cmmMain.
Statements
.Add(new CodeExpressionStatement(cmieIT));
3150
cmmMain.
Statements
.Add(csRun);
3207
cmmMain.
Statements
.Add(cvdsAppSplash);
3212
cmmMain.
Statements
.Add(cmieShowSplashScreen);
System (12)
compmod\microsoft\csharp\csharpcodeprovider.cs (4)
1812
GenerateStatements(e.
Statements
);
1898
GenerateStatements(e.
Statements
);
2269
GenerateStatements(e.
Statements
);
2290
GenerateStatements(e.
Statements
);
compmod\microsoft\visualbasic\VBCodeProvider.cs (4)
1918
GenerateVBStatements(e.
Statements
);
1940
GenerateVBStatements(e.
Statements
);
2135
GenerateVBStatements(e.
Statements
);
2154
GenerateVBStatements(e.
Statements
);
compmod\system\codedom\compiler\CodeValidator.cs (4)
238
ValidateStatements(e.
Statements
);
282
ValidateStatements(((CodeEntryPointMethod)e).
Statements
);
296
ValidateStatements(e.
Statements
);
318
ValidateStatements(e.
Statements
);
System.Activities (47)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (47)
722
languageProperty.
Statements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(this.settings.Language)));
775
constructor.
Statements
.Add(nullArgumentCondition);
777
constructor.
Statements
.Add(
832
getLocationsMethod.
Statements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
841
getLocationsMethod.
Statements
.Add(returnLocationsVar);
856
getLocationsMethod.
Statements
.Add(idCondition);
859
getLocationsMethod.
Statements
.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("returnLocations")));
911
getExpressionTreeForExpressionMethod.
Statements
.Add(idCondition);
914
getExpressionTreeForExpressionMethod.
Statements
.Add(new CodeMethodReturnStatement(
946
invokeExpressionMethod.
Statements
.Add(GenerateInitializeDataContextActivity());
957
invokeExpressionMethod.
Statements
.Add(GenerateDataContextActivitiesCheck(this.expressionDescriptors[0]));
998
invokeExpressionMethod.
Statements
.Add(idCondition);
1001
invokeExpressionMethod.
Statements
.Add(new CodeMethodReturnStatement(
1338
isValidMethod.
Statements
.Add(matchCondition);
1341
isValidMethod.
Statements
.Add(
1346
isValidMethod.
Statements
.Add(
1484
expressionMethod.
Statements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
1508
expressionMethod.
Statements
.Add(statement);
1515
expressionMethod.
Statements
.Add(new CodeMethodReturnStatement(invokeExpression));
1519
expressionMethod.
Statements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
1544
expressionMethod.
Statements
.Add(statement);
1556
wrapperMethod.
Statements
.Add(new CodeMethodInvokeExpression(
1561
wrapperMethod.
Statements
.Add(new CodeMethodReturnStatement(
1591
expressionMethod.
Statements
.Add(statement);
1605
wrapperMethod.
Statements
.Add(new CodeMethodInvokeExpression(
1617
wrapperMethod.
Statements
.Add(setExpression);
1619
wrapperMethod.
Statements
.Add(new CodeMethodInvokeExpression(
1638
expressionMethod.
Statements
.Add(statement);
1649
wrapperMethod.
Statements
.Add(new CodeMethodInvokeExpression(
1659
wrapperMethod.
Statements
.Add(setExpression);
1661
wrapperMethod.
Statements
.Add(new CodeMethodInvokeExpression(
1695
fetchMethod.
Statements
.Add(
1699
fetchMethod.
Statements
.Add(new CodeMethodInvokeExpression(
1731
pushMethod.
Statements
.Add(setValue);
1734
pushMethod.
Statements
.Add(new CodeMethodInvokeExpression(
1836
dataContextActivitiesHelper.
Statements
.Add(
1863
setLocationsOffsetMethod.
Statements
.Add(assignLocationsOffsetStatement);
1869
setLocationsOffsetMethod.
Statements
.Add(baseSetLocationsOffsetMethod);
1894
cacheHelper.
Statements
.Add(
2007
constructor.
Statements
.Add(offsetCheckStatement);
2236
validateMethod.
Statements
.Add(checkLocationCountStatement);
2249
validateMethod.
Statements
.Add(generateNewOffset);
2256
validateMethod.
Statements
.Add(setexpectedLocationsCountStatement);
2260
validateMethod.
Statements
.Add(GenerateLocationReferenceCheck(kvp.Value));
2265
validateMethod.
Statements
.Add(GenerateLocationReferenceCheck(kvp.Value));
2281
validateMethod.
Statements
.Add(
2286
validateMethod.
Statements
.Add(
System.Data (120)
fx\src\data\System\Data\CodeGen\datacache.cs (120)
300
onRowEvent.
Statements
.Add(MethodCall(Base(), "OnRow" + eventName, Argument("e")));
301
onRowEvent.
Statements
.Add(If(IdNotEQ(Event(rowClassName + eventName), Primitive(null)),
339
constructor.
Statements
.Add(MethodCall(This(), "InitClass"));
350
constructor.
Statements
.Add(MethodCall(This(), "InitVars"));
369
constructor.
Statements
.Add(
374
constructor.
Statements
.Add(
379
constructor.
Statements
.Add(
384
constructor.
Statements
.Add(Assign(Property(This(), "Prefix"), Property(Argument("table"),"Prefix")));
385
constructor.
Statements
.Add(Assign(Property(This(), "MinimumCapacity"), Property(Argument("table"),"MinimumCapacity")));
386
constructor.
Statements
.Add(Assign(Property(This(), "DisplayExpression"), Property(Argument("table"),"DisplayExpression")));
424
addMethod.
Statements
.Add(MethodCall(Property(This(), "Rows"), "Add", Argument("row")));
457
addByColName.
Statements
.Add(VariableDecl(stRowConcreateClassName, "row" + stRowClassName, Cast(stRowConcreateClassName, MethodCall(This(), "NewRow"))));
486
addByColName.
Statements
.Add(assignStmt);
488
addByColName.
Statements
.Add(MethodCall(Property(This(), "Rows"), "Add", varRow));
489
addByColName.
Statements
.Add(Return(varRow));
528
findBy.
Statements
.Add(Return(Cast(stRowClassName, MethodCall(Property(This(), "Rows"), "Find", arrayCreate))));
538
getEnumerator.
Statements
.Add(Return(MethodCall(Property(This(), "Rows"), "GetEnumerator")));
548
clone.
Statements
.Add(VariableDecl(stTblClassName, "cln", Cast(stTblClassName, MethodCall(Base(), "Clone", new CodeExpression[] {}))));
549
clone.
Statements
.Add(MethodCall(Variable("cln"), "InitVars", new CodeExpression [] {}));
550
clone.
Statements
.Add(Return(Variable("cln")));
558
createInstance.
Statements
.Add(Return(New(stTblClassName, new CodeExpression[] {})));
575
tableInitClass.
Statements
.Add(Assign(codeField,
591
tableInitClass.
Statements
.Add(MethodCall(Property(This(), "Columns"), "Add", Field(This(), ColumnName)));
606
tableInitClass.
Statements
.Add(MethodCall(Property(This(), "Constraints"), "Add",
624
tableInitVars.
Statements
.Add(Assign(codeField, Indexer(Property(This(),"Columns"),Str(column.ColumnName))));
628
tableInitClass.
Statements
.Add(Assign(Property(codeField, "AutoIncrement"), Primitive(true)));
632
tableInitClass.
Statements
.Add(Assign(Property(codeField, "AutoIncrementSeed"), Primitive(column.AutoIncrementSeed)));
636
tableInitClass.
Statements
.Add(Assign(Property(codeField, "AutoIncrementStep"), Primitive(column.AutoIncrementStep)));
640
tableInitClass.
Statements
.Add(Assign(Property(codeField, "AllowDBNull"), Primitive(false)));
644
tableInitClass.
Statements
.Add(Assign(Property(codeField, "ReadOnly"), Primitive(true)));
648
tableInitClass.
Statements
.Add(Assign(Property(codeField, "Unique"), Primitive(true)));
653
tableInitClass.
Statements
.Add(Assign(Property(codeField, "Prefix"), Str(column.Prefix)));
657
tableInitClass.
Statements
.Add(Assign(Property(codeField, "Namespace"), Str(column.Namespace)));
661
tableInitClass.
Statements
.Add(Assign(Property(codeField, "Caption"), Str(column.Caption)));
665
tableInitClass.
Statements
.Add(Assign(Property(codeField, "DefaultValue"), Primitive(column.DefaultValue)));
669
tableInitClass.
Statements
.Add(Assign(Property(codeField, "MaxLength"), Primitive(column.MaxLength)));
675
tableInitClass.
Statements
.Add(Assign(Property(This(), "CaseSensitive"), Primitive(table.CaseSensitive)));
679
tableInitClass.
Statements
.Add(Assign(Property(This(), "Locale"), New(typeof(System.Globalization.CultureInfo),new CodeExpression[] {Str(table.Locale.ToString())})));
683
tableInitClass.
Statements
.Add(Assign(Property(This(), "Prefix"), Str(table.Prefix)));
687
tableInitClass.
Statements
.Add(Assign(Property(This(), "Namespace"), Str(table.Namespace)));
692
tableInitClass.
Statements
.Add(Assign(Property(This(), "MinimumCapacity"), Primitive(table.MinimumCapacity)));
696
tableInitClass.
Statements
.Add(Assign(Property(This(), "DisplayExpression"), Str(table.DisplayExpressionInternal)));
707
newTableRow.
Statements
.Add(Return(Cast(stRowConcreateClassName, MethodCall(This(), "NewRow"))));
716
newRowFromBuilder.
Statements
.Add(Return(New(stRowConcreateClassName, new CodeExpression[] {Argument("builder")})));
724
getRowType.
Statements
.Add(Return(TypeOf(stRowConcreateClassName)));
738
removeMethod.
Statements
.Add(MethodCall(Property(This(), "Rows"), "Remove", Argument("row")));
770
constructor.
Statements
.Add(Assign(Field(This(), stTblFieldName), Cast(stTblClassName, Property(This(),"Table"))));
901
isNull.
Statements
.Add(Return(MethodCall(This(), "IsNull", Property(Field(This(), stTblFieldName), tableColumnName))));
909
setNull.
Statements
.Add(Assign(Indexer(This(), Property(Field(This(), stTblFieldName), tableColumnName)), Field(TypeExpr(typeof(Convert)), "DBNull")));
925
childArray.
Statements
.Add(Return(Cast(Type(rowConcreateClassName, 1), MethodCall(This(), "GetChildRows", Indexer(Property(Property(This(), "Table"), "ChildRelations"), Str(relation.RelationName))))));
976
constructor.
Statements
.Add(Assign(Field(This(), "eventRow" ), Argument("row" )));
977
constructor.
Statements
.Add(Assign(Field(This(), "eventAction"), Argument("action")));
1032
constructor.
Statements
.Add(MethodCall(This(), "BeginInit"));
1033
constructor.
Statements
.Add(MethodCall(This(), "InitClass"));
1034
constructor.
Statements
.Add(VariableDecl(typeof(CollectionChangeEventHandler),"schemaChangedHandler",
1036
constructor.
Statements
.Add(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Tables"),"CollectionChanged"),Variable("schemaChangedHandler")));
1037
constructor.
Statements
.Add(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Relations"),"CollectionChanged"),Variable("schemaChangedHandler")));
1038
constructor.
Statements
.Add(MethodCall(This(), "EndInit"));
1049
constructor.
Statements
.Add(
1060
constructor.
Statements
.Add(
1086
constructor.
Statements
.Add(
1097
constructor.
Statements
.Add(MethodCall(This(), "GetSerializationData", new CodeExpression [] { Argument("info"), Argument("context") }));
1098
constructor.
Statements
.Add(VariableDecl(typeof(CollectionChangeEventHandler),"schemaChangedHandler",
1100
constructor.
Statements
.Add(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Tables"),"CollectionChanged"),Variable("schemaChangedHandler")));
1101
constructor.
Statements
.Add(new System.CodeDom.CodeAttachEventStatement(new CodeEventReferenceExpression(Property(This(),"Relations"),"CollectionChanged"),Variable("schemaChangedHandler")));
1111
clone.
Statements
.Add(VariableDecl(stDataSetClassName, "cln", Cast(stDataSetClassName, MethodCall(Base(), "Clone", new CodeExpression[] {}))));
1112
clone.
Statements
.Add(MethodCall(Variable("cln"), "InitVars", new CodeExpression [] {}));
1113
clone.
Statements
.Add(Return(Variable("cln")));
1119
initDataSetVarsMethod.
Statements
.Add(MethodCall(This(), "InitVars", new CodeExpression [] {Primitive(true)}));
1131
initClassMethod.
Statements
.Add(Assign(Property(This(), "DataSetName"), Str(dataSet.DataSetName)));
1133
initClassMethod.
Statements
.Add(Assign(Property(This(), "Prefix"), Str(dataSet.Prefix)));
1135
initClassMethod.
Statements
.Add(Assign(Property(This(), "Namespace"), Str(dataSet.Namespace)));
1137
initClassMethod.
Statements
.Add(Assign(Property(This(), "Locale"), New(typeof(System.Globalization.CultureInfo),new CodeExpression[] {Str(dataSet.Locale.ToString())})));
1139
initClassMethod.
Statements
.Add(Assign(Property(This(), "CaseSensitive"), Primitive(dataSet.CaseSensitive)));
1141
initClassMethod.
Statements
.Add(Assign(Property(This(), "EnforceConstraints"), Primitive(dataSet.EnforceConstraints)));
1146
initClassMethod.
Statements
.Add(Assign(fieldTable, New(TableClassName(dataSet.Tables[i]), new CodeExpression[] {})));
1148
initClassMethod.
Statements
.Add(MethodCall(Property(This(), "Tables"), "Add", fieldTable));
1153
initVarsMethod.
Statements
.Add(Assign(fieldTable, Cast(TableClassName(dataSet.Tables[i]), Indexer(Property(This(),"Tables"),Str(dataSet.Tables[i].TableName)))));
1155
initVarsMethod.
Statements
.Add(
1170
shouldSerializeTables.
Statements
.Add(Return(Primitive(false)));
1178
shouldSerializeRelations.
Statements
.Add(Return(Primitive(false)));
1206
getTypedDataSetSchema.
Statements
.Add(VariableDecl(stDataSetClassName,"ds",New(stDataSetClassName,new CodeExpression[] {})));
1207
getTypedDataSetSchema.
Statements
.Add(MethodCall(Argument("xs"), "Add", new CodeExpression [] { MethodCall(Variable("ds"), "GetSchemaSerializable", new CodeExpression[] {})}));
1208
getTypedDataSetSchema.
Statements
.Add(VariableDecl(typeof(XmlSchemaComplexType),"type",New(typeof(XmlSchemaComplexType),new CodeExpression[] {})));
1209
getTypedDataSetSchema.
Statements
.Add(VariableDecl(typeof(XmlSchemaSequence),"sequence",New(typeof(XmlSchemaSequence),new CodeExpression[] {})));
1210
getTypedDataSetSchema.
Statements
.Add(VariableDecl(typeof(XmlSchemaAny),"any",New(typeof(XmlSchemaAny),new CodeExpression[] {})));
1211
getTypedDataSetSchema.
Statements
.Add(Assign(Property(Variable("any"),"Namespace"),Property(Variable("ds"),"Namespace")));
1212
getTypedDataSetSchema.
Statements
.Add(MethodCall(Property(Variable("sequence"),"Items"), "Add", new CodeExpression [] { Variable("any") }));
1213
getTypedDataSetSchema.
Statements
.Add(Assign(Property(Variable("type"),"Particle"),Variable("sequence")));
1214
getTypedDataSetSchema.
Statements
.Add(Return(Variable("type")));
1223
readXmlSerializable.
Statements
.Add(MethodCall(This(), "Reset", new CodeExpression [] {}));
1224
readXmlSerializable.
Statements
.Add(VariableDecl(typeof(DataSet),"ds",New(typeof(DataSet),new CodeExpression[] {})));
1225
readXmlSerializable.
Statements
.Add(MethodCall(Variable("ds"), "ReadXml", new CodeExpression [] { Argument("reader") }));
1229
readXmlSerializable.
Statements
.Add(
1235
readXmlSerializable.
Statements
.Add(Assign(Property(This(), "DataSetName"), Property(Variable("ds"),"DataSetName")));
1236
readXmlSerializable.
Statements
.Add(Assign(Property(This(), "Prefix"), Property(Variable("ds"),"Prefix")));
1237
readXmlSerializable.
Statements
.Add(Assign(Property(This(), "Namespace"), Property(Variable("ds"),"Namespace")));
1238
readXmlSerializable.
Statements
.Add(Assign(Property(This(), "Locale"), Property(Variable("ds"),"Locale")));
1239
readXmlSerializable.
Statements
.Add(Assign(Property(This(), "CaseSensitive"), Property(Variable("ds"),"CaseSensitive")));
1240
readXmlSerializable.
Statements
.Add(Assign(Property(This(), "EnforceConstraints"), Property(Variable("ds"),"EnforceConstraints")));
1241
readXmlSerializable.
Statements
.Add(MethodCall(This(),"Merge",new CodeExpression[] {Variable("ds"),Primitive(false),Field(TypeExpr(typeof(MissingSchemaAction)),"Add")}));
1242
readXmlSerializable.
Statements
.Add(MethodCall(This(),"InitVars"));
1254
getSchemaSerializable.
Statements
.Add(VariableDecl(typeof(System.IO.MemoryStream), "stream", New(typeof(System.IO.MemoryStream),new CodeExpression[] {})));
1255
getSchemaSerializable.
Statements
.Add(MethodCall(This(), "WriteXmlSchema", New(typeof(System.Xml.XmlTextWriter),new CodeExpression[] {Argument("stream"),Primitive(null)})));
1256
getSchemaSerializable.
Statements
.Add(Assign(Property(Argument("stream"),"Position"),Primitive(0)));
1257
getSchemaSerializable.
Statements
.Add(Return(MethodCall(TypeExpr("System.Xml.Schema.XmlSchema"),"Read",new CodeExpression[] {New(typeof(System.Xml.XmlTextReader),new CodeExpression[] {Argument("stream")}), Primitive(null)})));
1292
initClassMethod.
Statements
.Add(VariableDecl(typeof(ForeignKeyConstraint),"fkc"));
1296
initClassMethod.
Statements
.Add(Assign(
1300
initClassMethod.
Statements
.Add(MethodCall(
1309
initClassMethod.
Statements
.Add(Assign(Property(varFkc,"AcceptRejectRule"),Field(TypeExpr(fkc.AcceptRejectRule.GetType()), acceptRejectRule)));
1310
initClassMethod.
Statements
.Add(Assign(Property(varFkc,"DeleteRule"),Field(TypeExpr(fkc.DeleteRule.GetType()), deleteRule)));
1311
initClassMethod.
Statements
.Add(Assign(Property(varFkc,"UpdateRule"),Field(TypeExpr(fkc.UpdateRule.GetType()), updateRule)));
1337
initClassMethod.
Statements
.Add(Assign(
1344
initClassMethod.
Statements
.Add(Assign(Property(Field(This(), RelationFieldName(relation)), "Nested"), Primitive(true)));
1347
initClassMethod.
Statements
.Add(MethodCall(Property(This(), "Relations"), "Add", Field(This(), RelationFieldName(relation))));
1350
initVarsMethod.
Statements
.Add(Assign(Field(This(), RelationFieldName(relation)), Indexer(Property(This(),"Relations"),Str(relation.RelationName))));
1371
shouldSerializeTableProperty.
Statements
.Add(Return(Primitive(false)));
1379
schemaChanged.
Statements
.Add(
1398
initExpressionMethod.
Statements
.Add(Assign(Property(codeField, "Expression"), Str(column.Expression)));
1406
initClassMethod.
Statements
.Add(MethodCall(This(), "InitExpressions"));
System.Data.Entity.Design (20)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (10)
416
viewStoringTypeConstructor.
Statements
.Add(EdmEntityContainerNameStatement);
417
viewStoringTypeConstructor.
Statements
.Add(StoreEntityContainerNameStatement);
418
viewStoringTypeConstructor.
Statements
.Add(HashOverMappingClosureStatement);
419
viewStoringTypeConstructor.
Statements
.Add(HashOverAllExtentViewsStatement);
420
viewStoringTypeConstructor.
Statements
.Add(ViewCountStatement);
517
getViewAtMethod.
Statements
.Add(currentIf);
532
getViewAtMethod.
Statements
.Add(new CodeThrowExceptionStatement(
552
CreateSizedStringBuilder(viewMethod.
Statements
, viewText.Length);
556
viewMethod.
Statements
.Add(appendExpression);
574
viewMethod.
Statements
.Add(new CodeMethodReturnStatement(newExpression));
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (7)
224
emptyCtor.
Statements
.Add(OnContextCreatedCodeMethodInvokeExpression());
243
connectionStringCtor.
Statements
.Add(OnContextCreatedCodeMethodInvokeExpression());
262
connectionWorkspaceCtor.
Statements
.Add(OnContextCreatedCodeMethodInvokeExpression());
446
codeMethod.
Statements
.Add(
554
method.
Statements
.Add(
587
method.
Statements
.Add(
619
method.
Statements
.Add(
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (3)
191
method.
Statements
.Add(createNewInstance);
232
method.
Statements
.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(instanceRef, propertyEmitter.PropertyName), newPropertyValue));
236
method.
Statements
.Add(new CodeMethodReturnStatement(instanceRef));
System.Data.Services.Design (15)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
790
propertyChangedMethod.
Statements
.Add(
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (10)
197
connectionWorkspaceCtor.
Statements
.Add(
211
connectionWorkspaceCtor.
Statements
.Add(
223
connectionWorkspaceCtor.
Statements
.Add(OnContextCreatedCodeMethodInvokeExpression());
276
resolveTypeFromName.
Statements
.Add(
311
resolveTypeFromName.
Statements
.Add(
335
resolveNameFromType.
Statements
.Add(
370
resolveNameFromType.
Statements
.Add(
386
resolveNameFromType.
Statements
.Add(new CodeMethodReturnStatement(clientTypeFullName));
391
resolveNameFromType.
Statements
.Add(
610
codeMethod.
Statements
.Add(
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (4)
182
method.
Statements
.Add(createNewInstance);
209
method.
Statements
.Add(
233
method.
Statements
.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(instanceRef, propertyEmitter.PropertyName), newPropertyValue));
237
method.
Statements
.Add(new CodeMethodReturnStatement(instanceRef));
System.Management (161)
WmiGenerator.cs (161)
1139
cctor.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["LateBoundObject"].ToString()),new CodeVariableReferenceExpression("ManagedObject")));
1436
cmm.
Statements
.Add(cis2);
1437
cmm.
Statements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
1496
cmm2.
Statements
.Add(new CodeAssignStatement(cie,new CodePrimitiveExpression(null)));
1599
cmm2.
Statements
.Add(cis);
2102
cmm.
Statements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(strPath)));
2108
cmm.
Statements
.Add(new CodeVariableDeclarationStatement("System.String",strPathObject,new CodePrimitiveExpression(strPath)));
2137
cmm.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strPathObject),cmietoAdd));
2139
cmm.
Statements
.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strPathObject)));
2180
cctor.
Statements
.Add(new CodeExpressionStatement(cmieInit));
2217
cctor.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("dummyParam"),new CodePrimitiveExpression(null)));
2237
cctor.
Statements
.Add(new CodeExpressionStatement(cmieInit));
2276
cctor.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("dummyParam"),new CodePrimitiveExpression(null)));
2297
cctor.
Statements
.Add(new CodeExpressionStatement(cmieInit));
2329
cctor.
Statements
.Add(new CodeExpressionStatement(cmieInit));
2359
cctor.
Statements
.Add(new CodeExpressionStatement(cmieInit));
2387
cctor.
Statements
.Add(new CodeExpressionStatement(cmieInit));
2421
cctor.
Statements
.Add(new CodeExpressionStatement(cmieInit));
2457
cctor.
Statements
.Add(new CodeExpressionStatement(cmieInit));
2498
cctor.
Statements
.Add(new CodeExpressionStatement(cmieInit));
2546
cctor.
Statements
.Add(new CodeExpressionStatement(cmieInit));
2612
cctor.
Statements
.Add(cis);
2683
cctor.
Statements
.Add(cis);
2757
cmmInit.
Statements
.Add(cis);
2764
cmmInit.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(
2770
cmmInit.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(
2774
cmmInit.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()),
2789
cctor.
Statements
.Add(new CodeAssignStatement(cpre, new CodePrimitiveExpression(true)));
2889
cmm.
Statements
.Add(new CodeVariableDeclarationStatement("System.Boolean","IsMethodStatic",new CodePrimitiveExpression(bStatic)));
3248
cmm.
Statements
.Add(cRetVal);
3249
cmm.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),new CodePrimitiveExpression(null)));
3260
cmm.
Statements
.Add(cRetVal);
3261
cmm.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),
3272
cmm.
Statements
.Add(cRetVal);
3281
cmm.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression("retVar"),coce));
3316
cmm.
Statements
.Add(cis);
3345
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
3377
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
3408
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
3441
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
3514
cmm.
Statements
.Add(cis);
3520
cmm.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),pathObj,coce));
3522
cmm.
Statements
.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3526
cmm.
Statements
.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3537
cmm.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()),
3556
cmm.
Statements
.Add(cis);
3566
cmm.
Statements
.Add(new CodeMethodReturnStatement(coce));
3599
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
3631
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
3695
cmm.
Statements
.Add(cis);
3707
cmm.
Statements
.Add(new CodeVariableDeclarationStatement(PublicNamesUsed["ObjectSearcherClass"].ToString(),
3713
cmm.
Statements
.Add(new CodeVariableDeclarationStatement(
3717
cmm.
Statements
.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3724
cmm.
Statements
.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3733
cmm.
Statements
.Add(new CodeMethodReturnStatement(coce));
3840
cctor.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(baseTypeMemberVariable),cmie));
3843
cctor.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(typeMemberVariable),new CodeVariableReferenceExpression(baseTypeParam)));
3866
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
3890
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
3916
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
3940
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
3961
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
3986
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
4005
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
4024
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
4043
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
4062
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
4185
cmm.
Statements
.Add(cis);
4250
cmm.
Statements
.Add(cis);
4280
cmm.
Statements
.Add(cis);
4283
cmm.
Statements
.Add(returnStatement);
4328
cctor.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectCollection),
4418
cmm.
Statements
.Add(new CodeExpressionStatement(cmie));
4420
cmm.
Statements
.Add(new CodeVariableDeclarationStatement("System.Int32",strnCtr));
4456
cmm.
Statements
.Add(cfls);
4473
cmm.
Statements
.Add(new CodeMethodReturnStatement(coce));
4545
cctor.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strObjectEnumerator),
4600
cmm.
Statements
.Add(new CodeMethodReturnStatement(cmie));
4617
cmm.
Statements
.Add(new CodeExpressionStatement (cmie));
5073
cmm.
Statements
.Add(cis);
5108
cmm.
Statements
.Add(cis);
5560
cmm.
Statements
.Add(cis);
5683
cmm.
Statements
.Add(cis);
5684
cmm.
Statements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
6312
cmm.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ScopeClass"].ToString()),
6337
cmm.
Statements
.Add(cis1);
6342
cmm.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath));
6350
cmm.
Statements
.Add(new CodeVariableDeclarationStatement(PublicNamesUsed["ManagementClass"].ToString(),strTemp,coce1));
6361
cmm.
Statements
.Add(new CodeMethodReturnStatement(coce));
6393
cmm.
Statements
.Add(cmie1);
6447
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"),"initializer",new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("System.DateTime"),"MinValue")));
6450
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),year,new CodePropertyReferenceExpression(cvreInitializer,"Year")));
6453
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),month, new CodePropertyReferenceExpression(cvreInitializer,"Month")));
6456
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),day,new CodePropertyReferenceExpression(cvreInitializer,"Day")));
6459
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),hour,new CodePropertyReferenceExpression(cvreInitializer,"Hour")));
6462
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),minute,new CodePropertyReferenceExpression(cvreInitializer,"Minute")));
6465
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),second,new CodePropertyReferenceExpression(cvreInitializer,"Second")));
6468
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"),ticks,new CodePrimitiveExpression(0)));
6471
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),dmtf,new CodeVariableReferenceExpression(dmtfParam)));
6475
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"),datetimeVariable,cpreMinVal));
6478
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),tempStr,new CodeFieldReferenceExpression(
6500
cmmdt.
Statements
.Add(cis);
6519
cmmdt.
Statements
.Add(cis);
6536
cmmdt.
Statements
.Add(cis);
6702
cmmdt.
Statements
.Add(tryblock);
6718
cmmdt.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable),coce));
6728
cmmdt.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable),cmie2));
6740
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),tickoffset,cmie1));
6749
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),utcOffset,new CodePrimitiveExpression(0)));
6751
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),offsetAdjust,new CodePrimitiveExpression(0)));
6759
cmmdt.
Statements
.Add(
6772
cmmdt.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie));
6837
cmmdt.
Statements
.Add(cis);
6842
cmmdt.
Statements
.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(datetimeVariable)));
6919
cmmts.
Statements
.Add(
6939
cmmts.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),"maxTimeSpan",cpreMaxVal));
6959
cmmts.
Statements
.Add(cis);
6969
cmmts.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),"minTimeSpan",cpreMinVal));
6989
cmmts.
Statements
.Add(cis2);
7006
cmmts.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7023
cmmts.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7040
cmmts.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7047
cmmts.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7059
cmmts.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),tsTemp,coce));
7082
cmmts.
Statements
.Add(
7095
cmmts.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strmicrosec,cmie));
7118
cmmts.
Statements
.Add(cis);
7132
cmmts.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7136
cmmts.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfTimeSpan),cmie2));
7138
cmmts.
Statements
.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfTimeSpan)));
7161
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strUtc,
7181
cmmdt.
Statements
.Add(
7195
cmmdt.
Statements
.Add(
7287
cmmdt.
Statements
.Add(cis1);
7305
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),dmtfDateTime,cmie2));
7339
cmmdt.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
7355
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.DateTime"),dtTemp,coce));
7377
cmmdt.
Statements
.Add(
7391
cmmdt.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.String"),strmicrosec,cmie1));
7414
cmmdt.
Statements
.Add(cis1);
7426
cmmdt.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),cmie2));
7433
cmmdt.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
7437
cmmdt.
Statements
.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(dmtfDateTime)));
7464
cmmdt.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dmtfDateTime),
7487
cmmts.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),days,new CodePrimitiveExpression(0)));
7489
cmmts.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),hours,new CodePrimitiveExpression(0)));
7491
cmmts.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),minutes,new CodePrimitiveExpression(0)));
7493
cmmts.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int32"),seconds,new CodePrimitiveExpression(0)));
7495
cmmts.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.Int64"),ticks,new CodePrimitiveExpression(0)));
7516
cmmts.
Statements
.Add(cis);
7535
cmmts.
Statements
.Add(cis);
7553
cmmts.
Statements
.Add(cis);
7576
cmmts.
Statements
.Add(cis);
7733
cmmts.
Statements
.Add(tryblock);
7748
cmmts.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),timespan,coce));
7759
cmmts.
Statements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference("System.TimeSpan"),tsTemp,cmie));
7765
cmmts.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(timespan),cmie));
7771
cmmts.
Statements
.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(timespan)));
7801
cmMethod.
Statements
.Add(cmieInit);
7813
cmmInit.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["AutoCommitProperty"].ToString()),
7815
cmmInit.
Statements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()),
System.Runtime.Serialization (12)
System\Runtime\Serialization\CodeExporter.cs (12)
1679
readXmlMethod.
Statements
.Add(setNode);
1693
writeXmlMethod.
Statements
.Add(
1714
getSchemaMethod.
Statements
.Add(new CodeMethodReturnStatement(NullReference));
1729
getSchemaStaticMethod.
Statements
.Add(
1737
getSchemaStaticMethod.
Statements
.Add(
1757
baseConstructor.
Statements
.Add(setObjectData);
1761
baseConstructor.
Statements
.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(ThisReference, PropertyChangedEvent.Name), NullReference));
1858
getObjectDataMethod.
Statements
.Add(returnIfNull);
1859
getObjectDataMethod.
Statements
.Add(getEnumerator);
1860
getObjectDataMethod.
Statements
.Add(loop);
1911
raisePropertyChangedEventMethod.
Statements
.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name)));
1913
raisePropertyChangedEventMethod.
Statements
.Add(ifStatement);
System.ServiceModel (25)
System\ServiceModel\Description\ClientClassGenerator.cs (24)
276
helperMethod.
Statements
.Add(new CodeVariableDeclarationStatement(param.Type, inValue.VariableName, new CodeObjectCreateExpression(param.Type)));
287
helperMethod.
Statements
.Add(invokeMethod);
296
helperMethod.
Statements
.Add(new CodeVariableDeclarationStatement(method.ReturnType, outVar.VariableName, invokeMethod));
299
helperMethod.
Statements
.Add(returnStatement);
303
helperMethod.
Statements
.Add(new CodeMethodReturnStatement(invokeMethod));
325
helperMethod.
Statements
.Add(new CodeAssignStatement(fieldRef, new CodeObjectCreateExpression(field.Type)));
344
helperMethod.
Statements
.Add(new CodeAssignStatement(new CodeArgumentReferenceExpression(param.Name), fieldRef));
346
helperMethod.
Statements
.Add(new CodeAssignStatement(fieldRef, new CodeArgumentReferenceExpression(param.Name)));
464
method.
Statements
.Add(methodInvoke);
466
method.
Statements
.Add(new CodeMethodReturnStatement(methodInvoke));
541
ctor.
Statements
.Add(new CodeAssignStatement(resultsFieldReference, new CodeVariableReferenceExpression(EventArgsCtorParamNames[0])));
677
onBeginOperationMethod.
Statements
.Add(variableDecl);
689
onBeginOperationMethod.
Statements
.Add(new CodeMethodReturnStatement(invokeBegin));
732
onEndOperationMethod.
Statements
.Add(variableDecl);
749
onEndOperationMethod.
Statements
.Add(retValDecl);
753
onEndOperationMethod.
Statements
.Add(invokeEnd);
758
onEndOperationMethod.
Statements
.Add(new CodeMethodReturnStatement(retArray));
762
onEndOperationMethod.
Statements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
832
operationCompletedMethod.
Statements
.Add(ifEventHandlerNotNullBlock);
865
eventAsyncMethod.
Statements
.Add(CreateDelegateIfNotNull(beginOperationDelegate, beginOperationMethod));
866
eventAsyncMethod.
Statements
.Add(CreateDelegateIfNotNull(endOperationDelegate, endOperationMethod));
867
eventAsyncMethod.
Statements
.Add(CreateDelegateIfNotNull(operationCompletedDelegate, operationCompletedMethod));
883
eventAsyncMethod.
Statements
.Add(new CodeExpressionStatement(invokeAsync));
910
eventAsyncMethodOverload.
Statements
.Add(invokeEventAsyncMethod);
System\ServiceModel\Description\OperationGenerator.cs (1)
836
otherCtor.
Statements
.Add(new CodeAssignStatement(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), field.Name), new CodeArgumentReferenceExpression(param.Name)));
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
176
codeMemberMethod.
Statements
.Add(new CodeMethodReturnStatement(expr));
System.Web (78)
Compilation\BaseCodeDomTreeGenerator.cs (4)
373
_ctor.
Statements
.Add(CreateInitInvoke());
455
this.BuildInitStatements(initializedCondition.TrueStatements, InitMethod.
Statements
);
464
InitMethod.
Statements
.Add(initializedCondition);
788
method.
Statements
.Add(simpleAssignment);
Compilation\BaseTemplateCodeDomTreeGenerator.cs (14)
229
method.
Statements
, fStandardControl, fControlFieldDeclared, null, fControlSkin);
991
CodeStatementCollection topLevelStatements = method.
Statements
;
1015
method.
Statements
.AddRange(statements);
1328
method.
Statements
.Add(stmt);
1331
method.
Statements
.Add(stmt);
1422
method.
Statements
.Add(stmt);
1427
method.
Statements
.Add(stmt);
1479
AddOutputWriteStringStatement(method.
Statements
, (string)child);
1491
tempObjectVariableDeclared = GenerateSimpleAssignmentAtDesignTime(tempObjectVariableDeclared, method.
Statements
, method.
Statements
, codeExpression, linePragma);
1519
method.
Statements
.Add(lit);
1531
method.
Statements
.Add(lit);
1542
method.
Statements
.Add(statement);
1562
method.
Statements
.Add(methodCall);
Compilation\BrowserCapabilitiesCompiler.cs (3)
358
CodeStatementCollection statements = cmm.
Statements
;
380
cmm.
Statements
.Add(istatement);
439
cmm.
Statements
.Add(istatement);
Compilation\MasterPageCodeDomTreeGenerator.cs (1)
37
method.
Statements
.Add(stmt);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
88
AddCreateTypeInstanceStatement(typeToCreate, ccu, method.
Statements
);
Compilation\PageCodeDomTreeGenerator.cs (18)
140
InitMethod.
Statements
.Add(setScriptTimeout);
145
InitMethod.
Statements
.Add(new CodeAssignStatement(
151
InitMethod.
Statements
.Add(new CodeAssignStatement(
157
InitMethod.
Statements
.Add(new CodeAssignStatement(
311
InitMethod.
Statements
.Add(outputCacheSettingsCondition);
363
method.
Statements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(Parser.TypeHashCode)));
380
method.
Statements
.Add(setStatment);
389
method.
Statements
.Add(addDeps);
404
method.
Statements
.Add(call);
409
method.
Statements
.Add(new CodeAssignStatement(
415
method.
Statements
.Add(new CodeAssignStatement(
426
method.
Statements
.Add(new CodeExpressionStatement(invokeExpr));
436
method.
Statements
.Add(statement);
472
method.
Statements
.Add(new CodeMethodReturnStatement(invokeExpr));
493
method.
Statements
.Add(call);
530
method.
Statements
.Add(new CodeMethodReturnStatement(invokeExpr));
551
method.
Statements
.Add(call);
602
method.
Statements
.Add(invokeExpr);
Compilation\ProfileBuildProvider.cs (1)
295
method.
Statements
.Add(returnSatement);
Compilation\TemplateControlCodeDomTreeGenerator.cs (5)
155
bindMethod.
Statements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(String.Empty)));
195
method.
Statements
.Add(new CodeExpressionStatement(baseCallExpression));
207
method.
Statements
.Add(new CodeExpressionStatement(methCallExpression));
214
method.
Statements
.Add(new CodeExpressionStatement(call));
320
ctorCode.
Statements
.Add(CreateInitInvoke());
Configuration\BrowserCapabilitiesCodeGenerator.cs (31)
757
method.
Statements
.Add(istatement);
906
method.
Statements
.Add(baseInvoke);
924
method.
Statements
.Add(cas);
944
method.
Statements
.Add(cas);
969
method.
Statements
.Add(baseInvoke);
978
method.
Statements
.Add(cas);
1012
cmm.
Statements
.Add(cmie);
1039
cmm.
Statements
.Add(cvds);
1043
CodeStatementCollection statements = cmm.
Statements
;
1080
cmm.
Statements
.Add(cmrs);
1095
cmm.
Statements
.Add(expr);
1127
cmm.
Statements
.Add(new CodeVariableDeclarationStatement("RegexWorker", _regexWorkerRefName));
1130
cmm.
Statements
.Add(new CodeAssignStatement(_regexWorkerRefExpr, new CodeObjectCreateExpression("RegexWorker", _browserCapsRefExpr)));
1143
cmm.
Statements
.Add(emptyCheckStmt);
1151
cmm.
Statements
.Add(new CodeVariableDeclarationStatement(typeof(IDictionary), _dictionaryRefName));
1158
cmm.
Statements
.Add(assign);
1179
cmm.
Statements
.Add(valueAssignment);
1231
cmm.
Statements
.Add(assign);
1244
cmm.
Statements
.Add(istatement);
1263
cmm.
Statements
.Add(valueAssignment);
1292
cmm.
Statements
.Add(assign);
1305
cmm.
Statements
.Add(istatement);
1312
cmm.
Statements
.Add(cme);
1318
cmm.
Statements
.Add(new CodeVariableDeclarationStatement(varType, varName));
1362
cmm.
Statements
.Add(cmie);
1388
cmm.
Statements
.Add(cmie);
1421
cmm.
Statements
.Add(assign);
1439
cmm.
Statements
.Add(assignAdapter);
1447
cmm.
Statements
.Add(assignHtmlTextWriter);
1453
cmm.
Statements
.Add(new CodeCommentStatement(comment));
1489
cmm.
Statements
.Add(xProcess);
System.Web.Services (23)
System\Web\Services\Description\HttpProtocolImporter.cs (6)
180
mainCodeMethod.
Statements
.Add(new CodeMethodReturnStatement(new CodeCastExpression(method.MimeReturn.TypeName, invoke)));
183
mainCodeMethod.
Statements
.Add(new CodeExpressionStatement(invoke));
211
beginCodeMethod.
Statements
.Add(new CodeMethodReturnStatement(invoke));
222
endCodeMethod.
Statements
.Add(new CodeMethodReturnStatement(new CodeCastExpression(method.MimeReturn.TypeName, invoke)));
225
endCodeMethod.
Statements
.Add(new CodeExpressionStatement(invoke));
261
asyncCodeMethod.
Statements
.Add(invoke);
System\Web\Services\Description\ProtocolImporter.cs (5)
444
asyncCancelMethod.
Statements
.Add(invoke);
663
ctor.
Statements
.Add(assignUrlStatement);
673
ctor.
Statements
.Add(new CodeVariableDeclarationStatement(typeof(string), "urlSetting", value));
692
ctor.
Statements
.Add(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[] { assignUrlStatement }));
694
ctor.
Statements
.Add(new CodeConditionStatement(checkIfNull, trueStatements));
System\Web\Services\Description\SoapHttpTransportImporter.cs (1)
31
ctor.
Statements
.Add(assignVersionStatement);
System\Web\Services\Description\SoapProtocolImporter.cs (7)
873
beginCodeMethod.
Statements
.Add(new CodeMethodReturnStatement(invoke));
937
asyncCodeMethod.
Statements
.Add(invoke);
968
codeMethod.
Statements
.Add(new CodeExpressionStatement(invoke));
971
codeMethod.
Statements
.Add(new CodeVariableDeclarationStatement(typeof(object[]), resultsName, invoke));
981
codeMethod.
Statements
.Add(new CodeAssignStatement(target, value));
988
codeMethod.
Statements
.Add(new CodeAssignStatement(target, value));
997
codeMethod.
Statements
.Add(new CodeMethodReturnStatement(value));
System\Web\Services\Description\WebCodeGenerator.cs (4)
311
asyncCompleted.
Statements
.Add(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[0]));
327
asyncCodeMethod.
Statements
.Add(invoke);
344
asyncCodeMethod.
Statements
.Add(new CodeConditionStatement(checkIfNull, trueStatements, new CodeStatement[0]));
388
ctor.
Statements
.Add(new CodeAssignStatement(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), data.Name), new CodeArgumentReferenceExpression(results)));
System.Workflow.Activities (4)
WebServiceReceive.cs (4)
844
webMethod.
Statements
.Add(resultsDeclaration);
854
webMethod.
Statements
.Add(assignStatement);
867
webMethod.
Statements
.Add(methodReturnStatement);
871
webMethod.
Statements
.Add(baseInvokeExpression);
System.Workflow.ComponentModel (7)
AuthoringOM\Serializer\ActivityTypeCodeDomSerializer.cs (7)
47
ctor.
Statements
.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), _initMethodName));
92
CodeStatement[] codeStatements = new CodeStatement[method.
Statements
.Count];
93
method.
Statements
.CopyTo(codeStatements, 0);
94
method.
Statements
.Clear();
99
method.
Statements
.Add(beginInit);
102
method.
Statements
.Add(s);
107
method.
Statements
.Add(endInit);
System.Xml (4)
System\Xml\Serialization\CodeExporter.cs (2)
358
raisePropertyChangedEventMethod.
Statements
.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(new CodeThisReferenceExpression(), PropertyChangedEvent.Name)));
360
raisePropertyChangedEventMethod.
Statements
.Add(ifStatement);
System\Xml\Serialization\XmlCodeExporter.cs (2)
479
ctor.
Statements
.Add(assign);
556
if (ctor.
Statements
.Count == 0) codeClass.Members.Remove(ctor);
XamlBuildTask (24)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (24)
399
initializeMethod.
Statements
.Add(
415
initializeMethod.
Statements
.Add(
431
initializeMethod.
Statements
.Add(new CodeVariableDeclarationStatement(
433
initializeMethod.
Statements
.Add(new CodeMethodInvokeExpression(
437
initializeMethod.
Statements
.Add(
456
initializeMethod.
Statements
.DeclareVar(
473
initializeMethod.
Statements
.DeclareVar(
502
CodeVariableReferenceExpression xmlReaderVar = initializeMethod.
Statements
.DeclareVar(
505
CodeVariableReferenceExpression xamlReaderVar = initializeMethod.
Statements
.DeclareVar(
508
CodeVariableReferenceExpression objWriterVar = initializeMethod.
Statements
.DeclareVar(
516
initializeMethod.
Statements
.Add(tryCatchFinally);
521
initializeMethod.
Statements
.Add(new CodeMethodInvokeExpression(new CodeThisReferenceExpression(), "AfterInitializeComponent"));
708
findResourceMethod.
Statements
.DeclareVar(
737
findResourceMethod.
Statements
.Add(
814
findResourceMethod.
Statements
.Add(
1221
CodeVariableReferenceExpression assemblyName = loadMethod.
Statements
.DeclareVar(typeof(AssemblyName), "assemblyName", initAssemblyName);
1223
CodeVariableReferenceExpression publicKeyToken = loadMethod.
Statements
.DeclareVar(typeof(byte[]),
1235
CodeVariableReferenceExpression asm = loadMethod.
Statements
.DeclareVar(typeof(Assembly), "asm", new CodePrimitiveExpression(null));
1272
loadMethod.
Statements
.Add(tryCatchExp);
1273
loadMethod.
Statements
.Add(new CodeMethodReturnStatement(asm));
1297
CodeVariableReferenceExpression assemblyList = loadAssembliesMethod.
Statements
.DeclareVar(typeof(IList<Assembly>),
1302
loadAssembliesMethod.
Statements
.Add(
1315
loadAssembliesMethod.
Statements
.Add(
1326
loadAssembliesMethod.
Statements
.Add(new CodeMethodReturnStatement(assemblyList));