23 references to CodeMethodReturnStatement
Microsoft.Build.Tasks.Core (13)
CodeTaskFactory.cs (2)
376
prop.GetStatements.Add(new
CodeMethodReturnStatement
(fieldRef));
399
executeMethod.Statements.Add(new
CodeMethodReturnStatement
(new CodeFieldReferenceExpression(null, "_Success")));
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
238
executeMethod.Statements.Add(new
CodeMethodReturnStatement
(new CodePropertyReferenceExpression(null, successProperty.Name)));
642
property.GetStatements.Add(new
CodeMethodReturnStatement
(fieldReference));
system.design\stronglytypedresourcebuilder.cs (4)
470
resMgr.GetStatements.Add(new
CodeMethodReturnStatement
(field_resMgr));
479
culture.GetStatements.Add(new
CodeMethodReturnStatement
(field_resCulture));
649
ret = new
CodeMethodReturnStatement
(getValue);
656
ret = new
CodeMethodReturnStatement
(new CodeCastExpression(valueType, new CodeVariableReferenceExpression("obj")));
XamlTaskFactory\TaskGenerator.cs (5)
653
isSet.TrueStatements.Add(new
CodeMethodReturnStatement
(new CodePropertyReferenceExpression(new CodeArrayIndexerExpression(new CodeVariableReferenceExpression(DictionaryOfSwitches), new CodeVariableReferenceExpression(SurroundWithQuotes(property.Name))), valueName)));
656
isSet.FalseStatements.Add(new
CodeMethodReturnStatement
(new CodeSnippetExpression(IsOff)));
660
isSet.FalseStatements.Add(new
CodeMethodReturnStatement
(new CodePrimitiveExpression(0)));
664
isSet.FalseStatements.Add(new
CodeMethodReturnStatement
(new CodeSnippetExpression("null")));
1088
toolNameAccessor.GetStatements.Add(new
CodeMethodReturnStatement
(new CodeSnippetExpression(SurroundWithQuotes(_taskParser.ToolName))));
PresentationBuildTasks (4)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (4)
2577
cmmCD.Statements.Add(new
CodeMethodReturnStatement
(cmieCD));
2779
cmmCI.Statements.Add(new
CodeMethodReturnStatement
(cmieCI));
2808
cmmGPV.Statements.Add(new
CodeMethodReturnStatement
(cmieGPV));
2890
cmmCD.Statements.Add(new
CodeMethodReturnStatement
(cceCD));
System.Runtime.Serialization.Schema (2)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
1766
getSchemaMethod.Statements.Add(new
CodeMethodReturnStatement
(NullReference));
1790
new
CodeMethodReturnStatement
(
System.Windows.Forms.Design (4)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (4)
622
resourceManagerProperty.GetStatements.Add(new
CodeMethodReturnStatement
(resourceManagerField));
631
culture.GetStatements.Add(new
CodeMethodReturnStatement
(cultureInfoField));
796
returnStatement =
new
(getValue);
802
returnStatement =
new
(new CodeCastExpression(valueType, new CodeVariableReferenceExpression("obj")));