37 references to CodeDomHelpers
dotnet-svcutil-lib (37)
CodeDomFixup\CodeDomHelpers.cs (3)
59
return
CodeDomHelpers
.IsTaskAsyncMethod(method) ? method :
CodeDomHelpers
.FindMethodByName(members,
CodeDomHelpers
.GetMethodNameBase(method) + "Async");
CodeDomFixup\CodeDomVisitors\AttributeFixer.cs (5)
63
if (
CodeDomHelpers
.MatchType(attr.AttributeType, typeof(ServiceContractAttribute)))
67
else if (
CodeDomHelpers
.MatchType(attr.AttributeType, typeof(OperationContractAttribute)))
71
else if (
CodeDomHelpers
.MatchType(attr.AttributeType, typeof(FaultContractAttribute)))
75
else if (
CodeDomHelpers
.MatchType(attr.AttributeType, typeof(GeneratedCodeAttribute)))
112
if (
CodeDomHelpers
.MatchType(attr.AttributeType, s_attrsToRemove[i]))
CodeDomFixup\CodeDomVisitors\ClientClassVisitor.cs (2)
23
(
CodeDomHelpers
.MatchGenericBaseType(type.BaseTypes[0], typeof(ClientBase<>)) ||
24
CodeDomHelpers
.MatchGenericBaseType(type.BaseTypes[0], typeof(DuplexClientBase<>)));
CodeDomFixup\CodeDomVisitors\ConstructorFixer.cs (1)
45
if (
CodeDomHelpers
.MatchSignatures(ctor.Parameters, validCtors[i]))
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (6)
34
CodeDomHelpers
.MatchGenericBaseType(type.BaseTypes[0], typeof(DuplexClientBase<>));
40
CodeTypeDeclaration serviceContractInterface =
CodeDomHelpers
.ResolveTypeReference(type.BaseTypes[0].TypeArguments[0]);
81
return !
CodeDomHelpers
.IsTaskAsyncMethod(method);
453
CodeMemberMethod m =
CodeDomHelpers
.GetImplementationOfMethod(callbackImpl.BaseTypes[1], method);
500
if (
CodeDomHelpers
.MatchType(attr.AttributeType, typeof(ServiceContractAttribute)))
513
return
CodeDomHelpers
.ResolveTypeReference(exp.Type);
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (2)
36
if (method != null && (
CodeDomHelpers
.IsBeginMethod(method) ||
CodeDomHelpers
.IsEndMethod(method)) && IsPublic(method.Attributes))
CodeDomFixup\CodeDomVisitors\RemoveExtensibleDataObjectImpl.cs (2)
21
return !
CodeDomHelpers
.MatchType<IExtensibleDataObject>(typeRef);
49
return memberType != null &&
CodeDomHelpers
.MatchType(memberType, typeof(ExtensionDataObject));
CodeDomFixup\CodeDomVisitors\RemoveSyncMethodsFromClientClass.cs (3)
20
CodeDomHelpers
.IsBeginMethod(method) ||
21
CodeDomHelpers
.IsEndMethod(method) ||
22
CodeDomHelpers
.IsTaskAsyncMethod(method);
CodeDomFixup\CodeDomVisitors\RemoveSyncMethodsFromInterface.cs (5)
20
return
CodeDomHelpers
.IsBeginMethod(method) ||
21
CodeDomHelpers
.IsTaskAsyncMethod(method) ||
22
CodeDomHelpers
.IsEndMethod(method);
30
CodeMemberMethod taskAyncMethod =
CodeDomHelpers
.GetTaskAsyncMethodForMethod(CurrentType.Members, syncMethod);
36
if (!
CodeDomHelpers
.MatchType<OperationContractAttribute>(attr.AttributeType))
CodeDomFixup\CodeDomVisitors\SimpleTypeRemapper.cs (1)
34
return
CodeDomHelpers
.MatchBaseType(typeref, this.srcType);
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
75
if (
CodeDomHelpers
.MatchType<Microsoft.Xml.Serialization.IXmlSerializable>(typeRef))
CodeDomFixup\CodeDomVisitors\TypeWithAttributeVisitor.cs (1)
15
return
CodeDomHelpers
.FindAttribute<T>(type.CustomAttributes) != null;
CodeDomFixup\CodeDomVisitors\XmlDomAttributeFixer.cs (1)
39
return memberType == null || !
CodeDomHelpers
.MatchAnyBaseType(memberType, s_filteredTypes);
CodeDomFixup\ConfigToCode.cs (1)
39
endpoint.Name =
CodeDomHelpers
.GetValidValueTypeIdentifier(endpoint.Name);
CodeDomFixup\MethodCreationHelper.cs (1)
72
configurationsEnum.Members.Add(new CodeMemberField(ConfigToCodeConstants.EndpointConfigurationEnumTypeName,
CodeDomHelpers
.EscapeName(endpointName)));
CommandProcessorOptions.cs (2)
652
var clrNamespace =
CodeDomHelpers
.GetValidValueTypeIdentifier(relPath);
659
var invalidNamespaces = this.NamespaceMappings.Where(nm => !
CodeDomHelpers
.IsValidNameSpace(nm.Value));