29 instantiations of 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 (7)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (7)
1225_ccRoot.HookupFn.Statements.Add(new CodeMethodReturnStatement()); 1229ccsConnector.TrueStatements.Add(new CodeMethodReturnStatement()); 2577cmmCD.Statements.Add(new CodeMethodReturnStatement(cmieCD)); 2604ccsCL.TrueStatements.Add(new CodeMethodReturnStatement()); 2779cmmCI.Statements.Add(new CodeMethodReturnStatement(cmieCI)); 2808cmmGPV.Statements.Add(new CodeMethodReturnStatement(cmieGPV)); 2890cmmCD.Statements.Add(new CodeMethodReturnStatement(cceCD));
System.Runtime.Serialization.Schema (5)
System\Runtime\Serialization\Schema\CodeExporter.cs (5)
1766getSchemaMethod.Statements.Add(new CodeMethodReturnStatement(NullReference)); 1790new CodeMethodReturnStatement( 1870returnIfNull.TrueStatements.Add(new CodeMethodReturnStatement()); 1940CodeMethodReturnStatement propertyGet = new CodeMethodReturnStatement(); 2000CodeMethodReturnStatement propertyGet = new 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")));
16 references to CodeMethodReturnStatement
Microsoft.Build.Tasks.Core (1)
system.design\stronglytypedresourcebuilder.cs (1)
646CodeMethodReturnStatement ret;
System (1)
src\libraries\shims\System\ref\System.cs (1)
72[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.CodeDom.CodeMethodReturnStatement))]
System.CodeDom (10)
Microsoft\CSharp\CSharpCodeGenerator.cs (3)
553else if (e is CodeMethodReturnStatement) 555GenerateMethodReturnStatement((CodeMethodReturnStatement)e); 930private void GenerateMethodReturnStatement(CodeMethodReturnStatement e)
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
1277protected override void GenerateMethodReturnStatement(CodeMethodReturnStatement e)
System\CodeDom\Compiler\CodeGenerator.cs (3)
899else if (e is CodeMethodReturnStatement) 901GenerateMethodReturnStatement((CodeMethodReturnStatement)e); 1547protected abstract void GenerateMethodReturnStatement(CodeMethodReturnStatement e);
System\CodeDom\Compiler\CodeValidator.cs (3)
407else if (e is CodeMethodReturnStatement) 409ValidateMethodReturnStatement((CodeMethodReturnStatement)e); 494private void ValidateMethodReturnStatement(CodeMethodReturnStatement e)
System.Runtime.Serialization.Schema (2)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
1940CodeMethodReturnStatement propertyGet = new CodeMethodReturnStatement(); 2000CodeMethodReturnStatement propertyGet = new CodeMethodReturnStatement();
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
427else if (statement is CodeMethodReturnStatement cmrs)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
793CodeMethodReturnStatement returnStatement;