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