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