public static int HasXmlReaderParameter(IMethodSymbol method, CompilationSecurityTypes xmlTypes)
 {
     return(GetSpecifiedParameterIndex(method, xmlTypes, IsXmlReaderType));
 }
Beispiel #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));
 }
Beispiel #8
0
 public static bool IsXmlReaderSettingsDtdProcessingProperty([NotNullWhen(returnValue: true)] IPropertySymbol?symbol, CompilationSecurityTypes xmlTypes)
 {
     return(IsSpecifiedProperty(symbol, xmlTypes.XmlReaderSettings, SecurityMemberNames.DtdProcessing));
 }
Beispiel #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);
Beispiel #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));
 }
Beispiel #11
0
 public static bool IsXmlTextReaderXmlResolverProperty([NotNullWhen(returnValue: true)] IPropertySymbol?symbol, CompilationSecurityTypes xmlTypes)
 {
     return(IsSpecifiedProperty(symbol, xmlTypes.XmlTextReader, SecurityMemberNames.XmlResolver));
 }
Beispiel #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);
Beispiel #13
0
 public static int GetXmlReaderSettingsParameterIndex(this IMethodSymbol?method, CompilationSecurityTypes xmlTypes)
 {
     return(GetSpecifiedParameterIndex(method, xmlTypes, IsXmlReaderSettingsType));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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);
 }