3 writes to TrueStatements
XamlBuildTask (3)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (3)
408
TrueStatements
= {
445
TrueStatements
=
801
TrueStatements
= {
171 references to TrueStatements
PresentationBuildTasks (9)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (9)
1028
ccsConnector.
TrueStatements
.Add(casES);
1029
ccsConnector.
TrueStatements
.Add(casEvent);
1030
ccsConnector.
TrueStatements
.Add(casHandler);
1031
ccsConnector.
TrueStatements
.Add(new CodeExpressionStatement(cmieAdd));
1082
ccsConnector.
TrueStatements
.Add( csAddCLREvent );
1210
ccsConnector.
TrueStatements
.Add(casName);
1226
ccsConnector.
TrueStatements
.Add(csEvent);
1239
ccsConnector.
TrueStatements
.Add(new CodeMethodReturnStatement());
2556
ccsCL.
TrueStatements
.Add(new CodeMethodReturnStatement());
System (5)
compmod\microsoft\csharp\csharpcodeprovider.cs (1)
1460
GenerateStatements(e.
TrueStatements
);
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
1542
GenerateVBStatements(e.
TrueStatements
);
compmod\system\codedom\CodeConditionStatement.cs (2)
47
TrueStatements
.AddRange(trueStatements);
58
TrueStatements
.AddRange(trueStatements);
compmod\system\codedom\compiler\CodeValidator.cs (1)
439
ValidateStatements(e.
TrueStatements
);
System.Activities (2)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (2)
1335
matchCondition.
TrueStatements
.Add(assignId);
1336
matchCondition.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
System.Data.Entity.Design (1)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
526
currentIf.
TrueStatements
.Add(returnViewMethodCall);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
229
csc = ccs.
TrueStatements
;
System.Management (113)
WmiGenerator.cs (113)
1077
cis.
TrueStatements
.Add(new CodeMethodReturnStatement(cpre));
1107
cis1.
TrueStatements
.Add(new CodeThrowExceptionStatement(coce));
1108
cis.
TrueStatements
.Add(cis1);
1111
cis.
TrueStatements
.Add(new CodeAssignStatement(cpre,
1343
cis.
TrueStatements
.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(true) ));
1369
cis.
TrueStatements
.Add(new CodeMethodReturnStatement (new CodePrimitiveExpression(null)));
1382
cis.
TrueStatements
.Add(new CodeMethodReturnStatement (new CodeCastExpression(cmp.Type,cmie )));
1399
cis.
TrueStatements
.Add(new CodeMethodReturnStatement(
1406
cis.
TrueStatements
.Add(new CodeMethodReturnStatement (cmie));
1434
cis2.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
1555
ccs.
TrueStatements
.Add(new CodeAssignStatement(cie,new CodePrimitiveExpression(null)));
1594
cis.
TrueStatements
.Add(new CodeExpressionStatement(cmie));
2595
cis.
TrueStatements
.Add(new CodeAssignStatement(
2602
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce));
2603
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()),
2663
cis.
TrueStatements
.Add(new CodeAssignStatement(
2670
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["SystemPropertiesObject"].ToString()),coce));
2671
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["CurrentObject"].ToString()),
2674
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["IsEmbedded"].ToString()),
2754
cis1.
TrueStatements
.Add(new CodeThrowExceptionStatement(coce));
2756
cis.
TrueStatements
.Add(cis1);
2905
cis.
TrueStatements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),
2915
cis.
TrueStatements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()),strPath,cocePath));
2926
cis.
TrueStatements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["ManagementClass"].ToString()),strClassObj,coce1));
2941
cis.
TrueStatements
.Add(new CodeVariableDeclarationStatement("System.Boolean",
2944
cis.
TrueStatements
.Add(new CodeAssignStatement(cprePriveleges, new CodePrimitiveExpression(true)));
2965
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strInParams),cmie));
3007
AddPropertySet(cie,prop.IsArray,cis.
TrueStatements
,PublicNamesUsed["PathClass"].ToString(),new CodeVariableReferenceExpression(cpde.Name));
3016
AddPropertySet(cie,prop.IsArray,cis.
TrueStatements
,"System.TimeSpan",new CodeVariableReferenceExpression(cpde.Name));
3020
AddPropertySet(cie,prop.IsArray,cis.
TrueStatements
,"System.DateTime",new CodeVariableReferenceExpression(cpde.Name));
3029
cis.
TrueStatements
.Add(new CodeAssignStatement(cie,new CodeCastExpression(new CodeTypeReference(cpde.Type.BaseType + " "),
3034
cis.
TrueStatements
.Add(new CodeAssignStatement(cie,new CodeCastExpression(cpde.Type,new CodeVariableReferenceExpression(cpde.Name))));
3067
cis.
TrueStatements
.Add(new CodeVariableDeclarationStatement(new CodeTypeReference(PublicNamesUsed["BaseObjClass"].ToString()),strOutParams,cmie));
3124
GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cis.
TrueStatements
,PublicNamesUsed["PathClass"].ToString(),new CodeVariableReferenceExpression(prop.Name),true);
3133
GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cis.
TrueStatements
,"System.TimeSpan",new CodeVariableReferenceExpression(prop.Name),true);
3137
GenerateCodeForRefAndDateTimeTypes(cie,prop.IsArray,cis.
TrueStatements
,"System.DateTime",new CodeVariableReferenceExpression(prop.Name),true);
3144
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),
3155
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(prop.Name),cmie2));
3218
cis.
TrueStatements
.Add(cmis);
3227
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(inoutParams[i].ToString()),
3236
cis.
TrueStatements
.Add(new CodeAssignStatement(cprePriveleges, new CodeVariableReferenceExpression(PrivateNamesUsed["Privileges"].ToString())));
3253
GenerateCodeForRefAndDateTimeTypes(cie,isRetArray,cis.
TrueStatements
,PublicNamesUsed["PathClass"].ToString(),new CodeVariableReferenceExpression("retVar"),true);
3254
cis.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3265
GenerateCodeForRefAndDateTimeTypes(cie,isRetArray,cis.
TrueStatements
,"System.DateTime",new CodeVariableReferenceExpression("retVar"),true);
3266
cis.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3284
GenerateCodeForRefAndDateTimeTypes(cie,isRetArray,cis.
TrueStatements
,"System.TimeSpan",new CodeVariableReferenceExpression("retVar"),true);
3285
cis.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression("retVar")));
3297
cis.
TrueStatements
.Add(new CodeMethodReturnStatement(cmie));
3309
cis.
TrueStatements
.Add(new CodeMethodReturnStatement(
3502
cis1.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),coce));
3504
cis1.
TrueStatements
.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3513
cis.
TrueStatements
.Add(cis1);
3549
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["EnumParam"].ToString()),
3551
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3683
cis1.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(PrivateNamesUsed["ScopeParam"].ToString()),coce));
3685
cis1.
TrueStatements
.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
3694
cis.
TrueStatements
.Add(cis1);
4152
cis.
TrueStatements
.Add(new CodeConditionStatement(cboe2,new CodeMethodReturnStatement(new CodeVariableReferenceExpression("value"))));
4180
cis.
TrueStatements
.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodeSnippetExpression(" \"NULL_ENUM_VALUE\" "))));
4182
cis.
TrueStatements
.Add(returnStatement);
4245
cis.
TrueStatements
.Add(new CodeConditionStatement(cboe7,new CodeMethodReturnStatement(new CodePrimitiveExpression(""))));
4247
cis.
TrueStatements
.Add(returnStatement);
4278
cis.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression("")));
5072
cis.
TrueStatements
.Add(new CodeExpressionStatement(cmie));
5107
cis.
TrueStatements
.Add(new CodeExpressionStatement(cmie));
5459
cis.
TrueStatements
.Add(cis1);
5461
cis1.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar),
5485
cis2.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strRetVar),
5488
cis1.
TrueStatements
.Add(cis2);
5548
cis.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5621
cis.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5639
cis1.
TrueStatements
.Add(new CodeVariableDeclarationStatement("System.Int32",strnCtr,new CodePrimitiveExpression(0)));
5676
cis2.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(true)));
5678
cis1.
TrueStatements
.Add(cfls);
5719
cis1.
TrueStatements
.Add (new CodeMethodReturnStatement(CreateObjectForProperty(strType,cmie)));
5727
cis1.
TrueStatements
.Add (new CodeAssignStatement(varToAssign ,CreateObjectForProperty(strType,cmie)));
5747
cis1.
TrueStatements
.Add(new CodeMethodReturnStatement(CreateObjectForProperty(strType,ce)));
5752
cis1.
TrueStatements
.Add(new CodeAssignStatement(varToAssign,CreateObjectForProperty(strType,ce)));
5793
cis1.
TrueStatements
.Add(
5805
cis1.
TrueStatements
.Add(
5859
cis1.
TrueStatements
.Add(cfls);
5862
cis1.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodeVariableReferenceExpression(strArray)));
5870
cis1.
TrueStatements
.Add(new CodeAssignStatement(varToAssign ,new CodeVariableReferenceExpression(strArray)));
5915
cis1.
TrueStatements
.Add(
5926
cis1.
TrueStatements
.Add(
5971
cis1.
TrueStatements
.Add(cfls);
5973
cis1.
TrueStatements
.Add(new CodeAssignStatement(prop,new CodeVariableReferenceExpression(strArray)));
6104
cis.
TrueStatements
.Add(new CodeMethodReturnStatement(Value));
6116
cis.
TrueStatements
.Add(new CodeAssignStatement(Value,
6325
cis1.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strScope),coce));
6327
cis1.
TrueStatements
.Add(new CodeAssignStatement(new CodePropertyReferenceExpression(
6498
cis.
TrueStatements
.Add(new CodeThrowExceptionStatement(codeThrowException));
6517
cis.
TrueStatements
.Add(new CodeThrowExceptionStatement(codeThrowException));
6534
cis.
TrueStatements
.Add(new CodeThrowExceptionStatement(codeThrowException));
6585
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(ticks),cboe2));
6670
cis.
TrueStatements
.Add(new CodeThrowExceptionStatement(codeThrowException));
6807
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(tempStr), cmie));
6823
cis.
TrueStatements
.Add(tryblock2);
6829
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(offsetAdjust),new CodeCastExpression(new CodeTypeReference("System.Int32"),cboe)));
6835
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(datetimeVariable),cmie));
6876
cis.
TrueStatements
.Add( new CodeAssignStatement(new CodeVariableReferenceExpression(toAssign),cmie));
6957
cis.
TrueStatements
.Add(new CodeThrowExceptionStatement(codeThrowException));
6987
cis2.
TrueStatements
.Add(new CodeThrowExceptionStatement(codeThrowException));
7117
cis.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strmicrosec),cmie));
7227
cis1.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(dateParam),cmie1));
7228
cis1.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),new CodePrimitiveExpression("+000")));
7257
cis2.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strUtc),
7413
cis1.
TrueStatements
.Add(new CodeAssignStatement(new CodeVariableReferenceExpression(strmicrosec),cmie1));
7514
cis.
TrueStatements
.Add(new CodeThrowExceptionStatement(codeThrowException));
7533
cis.
TrueStatements
.Add(new CodeThrowExceptionStatement(codeThrowException));
7551
cis.
TrueStatements
.Add(new CodeThrowExceptionStatement(codeThrowException));
7574
cis.
TrueStatements
.Add(new CodeThrowExceptionStatement(codeThrowException));
7702
cis.
TrueStatements
.Add(new CodeThrowExceptionStatement(codeThrowException));
System.Runtime.Serialization (4)
System\Runtime\Serialization\CodeExporter.cs (4)
1818
returnIfNull.
TrueStatements
.Add(new CodeMethodReturnStatement());
1914
ifStatement.
TrueStatements
.Add(new CodeDelegateInvokeExpression(propertyChanged, ThisReference, new CodeObjectCreateExpression(typeof(PropertyChangedEventArgs), propertyName)));
1971
ifStatement.
TrueStatements
.Add(propertySet);
1972
ifStatement.
TrueStatements
.Add(new CodeMethodInvokeExpression(ThisReference, RaisePropertyChangedEventMethod.Name, new CodePrimitiveExpression(propertyName)));
System.Web (28)
Compilation\BaseCodeDomTreeGenerator.cs (3)
455
this.BuildInitStatements(initializedCondition.
TrueStatements
, InitMethod.Statements);
457
initializedCondition.
TrueStatements
.Add(new CodeAssignStatement(
618
ifStmt.
TrueStatements
.Add(new CodeAssignStatement(fieldAccess, propertyInitExpression));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (5)
504
contentTemplateIfStmt.
TrueStatements
.Add(setStatement);
531
templateIfStmt.
TrueStatements
.Add(new CodeExpressionStatement(instantiateTemplateExpr));
925
templateIfStmt.
TrueStatements
.Add(methCallStatement);
1099
ifStatement.
TrueStatements
.Add(tableIndexAssign);
1765
currentStmts = ifStmt.
TrueStatements
;
Compilation\DataBindingExpressionBuilder.cs (1)
60
ifStmt.
TrueStatements
.AddRange(evalStatements);
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
127
createObjectStatement.
TrueStatements
.Add(new CodeMethodReturnStatement(getServiceExpr));
Compilation\PageCodeDomTreeGenerator.cs (14)
199
outputCacheSettingsCondition.
TrueStatements
.Insert(0, outputCacheSettingsDeclaration);
212
outputCacheSettingsCondition.
TrueStatements
.Add(setOutputCacheObject);
219
outputCacheSettingsCondition.
TrueStatements
.Add(setPropertyStatement);
227
outputCacheSettingsCondition.
TrueStatements
.Add(setPropertyStatement);
235
outputCacheSettingsCondition.
TrueStatements
.Add(setPropertyStatement);
245
outputCacheSettingsCondition.
TrueStatements
.Add(setPropertyStatement);
253
outputCacheSettingsCondition.
TrueStatements
.Add(setPropertyStatement);
261
outputCacheSettingsCondition.
TrueStatements
.Add(setPropertyStatement);
269
outputCacheSettingsCondition.
TrueStatements
.Add(setPropertyStatement);
277
outputCacheSettingsCondition.
TrueStatements
.Add(setPropertyStatement);
285
outputCacheSettingsCondition.
TrueStatements
.Add(setPropertyStatement);
292
outputCacheSettingsCondition.
TrueStatements
.Add(setPropertyStatement);
300
outputCacheSettingsCondition.
TrueStatements
.Add(setPropertyStatement);
309
outputCacheSettingsCondition.
TrueStatements
.Add(assignOutputCacheSettings);
Configuration\BrowserCapabilitiesCodeGenerator.cs (4)
756
istatement.
TrueStatements
.Add(new CodeMethodReturnStatement());
1142
emptyCheckStmt.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
1243
istatement.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
1304
istatement.
TrueStatements
.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(false)));
System.Xml (1)
System\Xml\Serialization\CodeExporter.cs (1)
361
ifStatement.
TrueStatements
.Add(new CodeDelegateInvokeExpression(propertyChanged, new CodeThisReferenceExpression(), new CodeObjectCreateExpression(typeof(PropertyChangedEventArgs), propertyName)));
XamlBuildTask (7)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (7)
640
xmlReaderNotNull.
TrueStatements
.Add(new CodeMethodInvokeExpression(iDisposibleCastXmlReader, "Dispose"));
647
xamlReaderNotNull.
TrueStatements
.Add(new CodeMethodInvokeExpression(iDisposibleCastXamlReader, "Dispose"));
654
objWriterNotNull.
TrueStatements
.Add(new CodeMethodInvokeExpression(iDisposibleCastObjWriter, "Dispose"));
1168
getSchemaContextIfNotNull.
TrueStatements
.Add(assignSchemaContext);
1169
getSchemaContextIfNotNull.
TrueStatements
.Add(xscReturnIfNotNull);
1178
initSchemaContext.
TrueStatements
.Add(new CodeAssignStatement(xsc, typeof(XamlSchemaContext).New(AssemblyList)));
1257
setPublicKeyTokenExp.
TrueStatements
.Add(