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