28 instantiations of CodeMethodReturnStatement
dotnet-svcutil-lib (28)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (1)
182nodesProperty.GetStatements.Add(new CodeMethodReturnStatement(
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
52new CodeMethodReturnStatement(
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (2)
383CodeMethodReturnStatement returnStmt = new CodeMethodReturnStatement(castExpr); 485m.Statements.Add(new CodeMethodReturnStatement(
CodeDomFixup\MethodCreationHelper.cs (12)
394statements.Add(new CodeMethodReturnStatement(resultVar)); 535statements.Add(new CodeMethodReturnStatement(resultVar)); 739statements.Add(new CodeMethodReturnStatement(resultVar)); 943statements.Add(new CodeMethodReturnStatement(resultVar)); 1090statements.Add(new CodeMethodReturnStatement(resultVar)); 1785statements.Add(new CodeMethodReturnStatement(resultVar)); 1868statements.Add(new CodeMethodReturnStatement(resultVar)); 1973statements.Add(new CodeMethodReturnStatement(resultVar)); 2090statements.Add(new CodeMethodReturnStatement(resultVar)); 2167new CodeMethodReturnStatement(createEndpointAddressExpression))); 2189new CodeMethodReturnStatement( 2199new CodeMethodReturnStatement(
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
357CodeMethodReturnStatement ret = new CodeMethodReturnStatement();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (4)
1631getSchemaMethod.Statements.Add(new CodeMethodReturnStatement(NullReference)); 1655new CodeMethodReturnStatement( 1685CodeMethodReturnStatement propertyGet = new CodeMethodReturnStatement(); 1745CodeMethodReturnStatement propertyGet = new CodeMethodReturnStatement();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (7)
303helperMethod.Statements.Add(new CodeMethodReturnStatement(invokeMethod)); 333returnStatement = new CodeMethodReturnStatement(fieldRef); 466method.Statements.Add(new CodeMethodReturnStatement(methodInvoke)); 606CodeMethodReturnStatement returnStmt = new CodeMethodReturnStatement(castExpr); 688onBeginOperationMethod.Statements.Add(new CodeMethodReturnStatement(invokeBegin)); 757onEndOperationMethod.Statements.Add(new CodeMethodReturnStatement(retArray)); 761onEndOperationMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null)));
23 references to CodeMethodReturnStatement
dotnet-svcutil-lib (23)
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (4)
324protected override void Visit(CodeMethodReturnStatement statement) 697else if (statement is CodeMethodReturnStatement) 698Visit((CodeMethodReturnStatement)statement); 722protected virtual void Visit(CodeMethodReturnStatement statement) { }
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
383CodeMethodReturnStatement returnStmt = new CodeMethodReturnStatement(castExpr);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (3)
1080else if (e is CodeMethodReturnStatement) 1082GenerateMethodReturnStatement((CodeMethodReturnStatement)e); 1937protected abstract void GenerateMethodReturnStatement(CodeMethodReturnStatement e);
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (3)
446else if (e is CodeMethodReturnStatement) 448ValidateMethodReturnStatement((CodeMethodReturnStatement)e); 534private void ValidateMethodReturnStatement(CodeMethodReturnStatement e)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (3)
1156else if (e is CodeMethodReturnStatement) 1158GenerateMethodReturnStatement((CodeMethodReturnStatement)e); 1609private void GenerateMethodReturnStatement(CodeMethodReturnStatement e)
FrameworkFork\Microsoft.CodeDom\System\CodeMethodReturnStatement.cs (2)
29/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeMethodReturnStatement'/>. 38/// Initializes a new instance of <see cref='Microsoft.CodeDom.CodeMethodReturnStatement'/> using the specified expression.
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
357CodeMethodReturnStatement ret = new CodeMethodReturnStatement();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
1685CodeMethodReturnStatement propertyGet = new CodeMethodReturnStatement(); 1745CodeMethodReturnStatement propertyGet = new CodeMethodReturnStatement();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (4)
297CodeMethodReturnStatement returnStatement = GenerateParameters(helperMethod, returnTypeDecl, outVar, FieldDirection.Out); 312private static CodeMethodReturnStatement GenerateParameters(CodeMemberMethod helperMethod, CodeTypeDeclaration codeTypeDeclaration, CodeExpression target, FieldDirection dir) 314CodeMethodReturnStatement returnStatement = null; 606CodeMethodReturnStatement returnStmt = new CodeMethodReturnStatement(castExpr);