public static int HasXmlReaderParameter(IMethodSymbol method, CompilationSecurityTypes xmlTypes)
 {
     return(GetSpecifiedParameterIndex(method, xmlTypes, IsXmlReaderType));
 }
예제 #2
0
 public static int GetXmlResolverParameterIndex(this IMethodSymbol?method, CompilationSecurityTypes xmlTypes)
 => GetSpecifiedParameterIndex(method, xmlTypes, IsXmlResolverType);
 public static bool IsXmlReaderType(ITypeSymbol symbol, CompilationSecurityTypes xmlTypes)
 {
     return(symbol != null &&
            symbol.DerivesFrom(xmlTypes.XmlReader, baseTypesOnly: true));
 }
 public static bool IsXsltSettingsEnableScriptProperty(IPropertySymbol symbol, CompilationSecurityTypes xmlTypes)
 {
     return(IsSpecifiedProperty(symbol, xmlTypes.XsltSettings, SecurityMemberNames.EnableScript));
 }
 public static bool IsXmlSecureResolverType([NotNullWhen(returnValue: true)] ITypeSymbol?symbol, CompilationSecurityTypes xmlTypes)
 {
     return(symbol != null &&
            symbol.DerivesFrom(xmlTypes.XmlSecureResolver, baseTypesOnly: true));
 }
 public static bool IsXmlTextReaderXmlResolverProperty(IPropertySymbol symbol, CompilationSecurityTypes xmlTypes)
 {
     return(IsSpecifiedProperty(symbol, xmlTypes.XmlTextReader, SecurityMemberNames.XmlResolver));
 }
 public static bool IsXmlReaderSettingsMaxCharactersFromEntitiesProperty(IPropertySymbol symbol, CompilationSecurityTypes xmlTypes)
 {
     return(IsSpecifiedProperty(symbol, xmlTypes.XmlReaderSettings, SecurityMemberNames.MaxCharactersFromEntities));
 }
예제 #8
0
 public static bool IsXmlReaderSettingsDtdProcessingProperty([NotNullWhen(returnValue: true)] IPropertySymbol?symbol, CompilationSecurityTypes xmlTypes)
 {
     return(IsSpecifiedProperty(symbol, xmlTypes.XmlReaderSettings, SecurityMemberNames.DtdProcessing));
 }
예제 #9
0
 public static bool IsXsltSettingsCtor([NotNullWhen(returnValue: true)] this IMethodSymbol?method, CompilationSecurityTypes xmlTypes)
 => method != null &&
 xmlTypes.XsltSettings != null &&
 method.MatchMethodByName(xmlTypes.XsltSettings, WellKnownMemberNames.InstanceConstructorName);
예제 #10
0
 public static bool IsXmlTextReaderCtorDerived([NotNullWhen(returnValue: true)] this IMethodSymbol?method, CompilationSecurityTypes xmlTypes)
 {
     return(method != null &&
            xmlTypes.XmlTextReader != null &&
            method.MatchMethodDerivedByName(xmlTypes.XmlTextReader, WellKnownMemberNames.InstanceConstructorName));
 }
예제 #11
0
 public static bool IsXmlTextReaderXmlResolverProperty([NotNullWhen(returnValue: true)] IPropertySymbol?symbol, CompilationSecurityTypes xmlTypes)
 {
     return(IsSpecifiedProperty(symbol, xmlTypes.XmlTextReader, SecurityMemberNames.XmlResolver));
 }
예제 #12
0
 public static bool IsXslCompiledTransformLoad([NotNullWhen(returnValue: true)] this IMethodSymbol?method, CompilationSecurityTypes xmlTypes)
 => method != null &&
 xmlTypes.XslCompiledTransform != null &&
 method.MatchMethodByName(xmlTypes.XslCompiledTransform, SecurityMemberNames.Load);
예제 #13
0
 public static int GetXmlReaderSettingsParameterIndex(this IMethodSymbol?method, CompilationSecurityTypes xmlTypes)
 {
     return(GetSpecifiedParameterIndex(method, xmlTypes, IsXmlReaderSettingsType));
 }
예제 #14
0
 public static int GetXsltSettingsParameterIndex(this IMethodSymbol?method, CompilationSecurityTypes xmlTypes)
 => GetSpecifiedParameterIndex(method, xmlTypes, IsXsltSettingsType);
 public static bool IsXmlTextReaderCtorDerived(IMethodSymbol method, CompilationSecurityTypes xmlTypes)
 {
     return(method != null &&
            method.MatchMethodDerivedByName(xmlTypes.XmlTextReader, WellKnownMemberNames.InstanceConstructorName));
 }
예제 #16
0
 public static bool IsXsltSettingsDefaultProperty([NotNullWhen(returnValue: true)] this IPropertySymbol?symbol, CompilationSecurityTypes xmlTypes)
 => IsSpecifiedProperty(symbol, xmlTypes.XsltSettings, SecurityMemberNames.Default);
 public static bool IsXmlTextReaderDtdProcessingPropertyDerived(IPropertySymbol symbol, CompilationSecurityTypes xmlTypes)
 {
     return(IsSpecifiedPropertyDerived(symbol, xmlTypes.XmlTextReader, SecurityMemberNames.DtdProcessing));
 }
예제 #18
0
 public static bool IsXsltSettingsEnableDocumentFunctionProperty([NotNullWhen(returnValue: true)] this IPropertySymbol?symbol, CompilationSecurityTypes xmlTypes)
 => IsSpecifiedProperty(symbol, xmlTypes.XsltSettings, SecurityMemberNames.EnableDocumentFunction);
 public static bool IsXmlReaderSettingsDtdProcessingProperty(IPropertySymbol symbol, CompilationSecurityTypes xmlTypes)
 {
     return(IsSpecifiedProperty(symbol, xmlTypes.XmlReaderSettings, SecurityMemberNames.DtdProcessing));
 }
 public static bool IsXmlReaderSettingsType(ITypeSymbol symbol, CompilationSecurityTypes xmlTypes)
 {
     return(Equals(symbol, xmlTypes.XmlReaderSettings));
 }
 public static bool IsXsltSettingsCtor(IMethodSymbol method, CompilationSecurityTypes xmlTypes)
 {
     return(method != null &&
            method.MatchMethodByName(xmlTypes.XsltSettings, WellKnownMemberNames.InstanceConstructorName));
 }
 public static bool IsXslCompiledTransformLoad(IMethodSymbol method, CompilationSecurityTypes xmlTypes)
 {
     return(method != null &&
            method.MatchMethodByName(xmlTypes.XslCompiledTransform, SecurityMemberNames.Load));
 }
 public static bool IsXsltSettingsEnableScriptProperty([NotNullWhen(returnValue: true)] IPropertySymbol?symbol, CompilationSecurityTypes xmlTypes)
 {
     return(IsSpecifiedProperty(symbol, xmlTypes.XsltSettings, SecurityMemberNames.EnableScript));
 }
 public static int GetXsltSettingsParameterIndex(IMethodSymbol method, CompilationSecurityTypes xmlTypes)
 {
     return(GetSpecifiedParameterIndex(method, xmlTypes, IsXsltSettingsType));
 }
 public static bool IsXmlReaderSettingsType([NotNullWhen(returnValue: true)] ITypeSymbol?symbol, CompilationSecurityTypes xmlTypes)
 {
     return(Equals(symbol, xmlTypes.XmlReaderSettings));
 }
 public static bool IsXsltSettingsType(ITypeSymbol symbol, CompilationSecurityTypes xmlTypes)
 {
     return(symbol == xmlTypes.XsltSettings);
 }