67 references to Statements
dotnet-svcutil-lib (67)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (4)
201getSchemaMethod.Statements.Add(throwException); 218writeXml.Statements.Add(enumeratorDec); 231writeXml.Statements.Add(codeFor); 283readXml.Statements.Add(codeFor);
CodeDomFixup\CodeDomVisitors\AddAsyncOpenClose.cs (1)
51implMethod.Statements.Add(
CodeDomFixup\CodeDomVisitors\CodeDomVisitor.cs (1)
293Enumerate(method.Statements);
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (8)
128ctor.Statements.Add( 167ctor.Statements.Add( 198ctor.Statements.Add( 307operationCompletedMethod.Statements.Add(ifEventHandlerNotNullBlock); 364ctor.Statements.Add(new CodeAssignStatement(resultsFieldReference, new CodeVariableReferenceExpression("results"))); 434m.Statements.Add( 464m.Statements.Add( 485m.Statements.Add(new CodeMethodReturnStatement(
CodeDomFixup\ConfigToCode.cs (3)
73ctor.Statements.Add(new CodeAssignStatement( 83ctor.Statements.Add(new CodeAssignStatement( 92ctor.Statements.Add(new CodeMethodInvokeExpression(
CodeDomFixup\MethodCreationHelper.cs (6)
144this.GetBinding.Statements.Add(condition); 2160this.GetEndpointAddress.Statements.Add( 2188this.GetDefaultBinding.Statements.Add( 2198this.GetDefaultEndpointAddress.Statements.Add( 2211this.GetBinding.Statements.Add( 2221this.GetEndpointAddress.Statements.Add(
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (4)
290ValidateStatements(e.Statements); 344ValidateStatements(((CodeEntryPointMethod)e).Statements); 362ValidateStatements(e.Statements); 388ValidateStatements(e.Statements);
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (4)
2052GenerateStatements(e.Statements); 2153GenerateStatements(e.Statements); 2578GenerateStatements(e.Statements); 2601GenerateStatements(e.Statements);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (2)
412raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(new CodeThisReferenceExpression(), PropertyChangedEvent.Name))); 414raisePropertyChangedEventMethod.Statements.Add(ifStatement);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (2)
549ctor.Statements.Add(assign); 640if (ctor.Statements.Count == 0) codeClass.Members.Remove(ctor);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (7)
1595readXmlMethod.Statements.Add(setNode); 1610writeXmlMethod.Statements.Add( 1631getSchemaMethod.Statements.Add(new CodeMethodReturnStatement(NullReference)); 1646getSchemaStaticMethod.Statements.Add( 1654getSchemaStaticMethod.Statements.Add( 1708raisePropertyChangedEventMethod.Statements.Add(new CodeVariableDeclarationStatement(typeof(PropertyChangedEventHandler), propertyChanged.VariableName, new CodeEventReferenceExpression(ThisReference, PropertyChangedEvent.Name))); 1710raisePropertyChangedEventMethod.Statements.Add(ifStatement);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (24)
276helperMethod.Statements.Add(new CodeVariableDeclarationStatement(param.Type, inValue.VariableName, new CodeObjectCreateExpression(param.Type))); 287helperMethod.Statements.Add(invokeMethod); 296helperMethod.Statements.Add(new CodeVariableDeclarationStatement(method.ReturnType, outVar.VariableName, invokeMethod)); 299helperMethod.Statements.Add(returnStatement); 303helperMethod.Statements.Add(new CodeMethodReturnStatement(invokeMethod)); 325helperMethod.Statements.Add(new CodeAssignStatement(fieldRef, new CodeObjectCreateExpression(field.Type))); 344helperMethod.Statements.Add(new CodeAssignStatement(new CodeArgumentReferenceExpression(param.Name), fieldRef)); 346helperMethod.Statements.Add(new CodeAssignStatement(fieldRef, new CodeArgumentReferenceExpression(param.Name))); 464method.Statements.Add(methodInvoke); 466method.Statements.Add(new CodeMethodReturnStatement(methodInvoke)); 541ctor.Statements.Add(new CodeAssignStatement(resultsFieldReference, new CodeVariableReferenceExpression(s_eventArgsCtorParamNames[0]))); 676onBeginOperationMethod.Statements.Add(variableDecl); 688onBeginOperationMethod.Statements.Add(new CodeMethodReturnStatement(invokeBegin)); 731onEndOperationMethod.Statements.Add(variableDecl); 748onEndOperationMethod.Statements.Add(retValDecl); 752onEndOperationMethod.Statements.Add(invokeEnd); 757onEndOperationMethod.Statements.Add(new CodeMethodReturnStatement(retArray)); 761onEndOperationMethod.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(null))); 831operationCompletedMethod.Statements.Add(ifEventHandlerNotNullBlock); 864eventAsyncMethod.Statements.Add(CreateDelegateIfNotNull(beginOperationDelegate, beginOperationMethod)); 865eventAsyncMethod.Statements.Add(CreateDelegateIfNotNull(endOperationDelegate, endOperationMethod)); 866eventAsyncMethod.Statements.Add(CreateDelegateIfNotNull(operationCompletedDelegate, operationCompletedMethod)); 882eventAsyncMethod.Statements.Add(new CodeExpressionStatement(invokeAsync)); 909eventAsyncMethodOverload.Statements.Add(invokeEventAsyncMethod);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
831otherCtor.Statements.Add(new CodeAssignStatement(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), field.Name), new CodeArgumentReferenceExpression(param.Name)));