C# Class ErrorProne.NET.Extensions.NamedSymbolExtensions

Show file Open project: SergeyTeplyakov/ErrorProne.NET

Public Methods

Method Description
GetSortedEnumFieldsAndValues ( this enumType ) : long>>.List
GetTypeQualifiedAssemblyName ( this namedType ) : string
HasAttribute ( this symbol, Type attributeType ) : bool
IsArgumentExceptionType ( this symbol, Microsoft.CodeAnalysis.SemanticModel model ) : bool
IsDerivedFromInterface ( this namedType, Type type ) : bool
IsExceptionType ( this symbol, Microsoft.CodeAnalysis.SemanticModel model ) : bool
IsType ( this namedType, Type type ) : bool
TraverseTypeAndItsBaseTypes ( this symbol ) : IEnumerable

Private Methods

Method Description
BuildQualifiedAssemblyName ( string nameSpace, string typeName, IAssemblySymbol assemblySymbol ) : string
ConvertEnumUnderlyingTypeToUInt64 ( object value, SpecialType specialType ) : ulong

Method Details

GetSortedEnumFieldsAndValues() public static method

public static GetSortedEnumFieldsAndValues ( this enumType ) : long>>.List
enumType this
return long>>.List

GetTypeQualifiedAssemblyName() public static method

public static GetTypeQualifiedAssemblyName ( this namedType ) : string
namedType this
return string

HasAttribute() public static method

public static HasAttribute ( this symbol, Type attributeType ) : bool
symbol this
attributeType System.Type
return bool

IsArgumentExceptionType() public static method

public static IsArgumentExceptionType ( this symbol, Microsoft.CodeAnalysis.SemanticModel model ) : bool
symbol this
model Microsoft.CodeAnalysis.SemanticModel
return bool

IsDerivedFromInterface() public static method

public static IsDerivedFromInterface ( this namedType, Type type ) : bool
namedType this
type System.Type
return bool

IsExceptionType() public static method

public static IsExceptionType ( this symbol, Microsoft.CodeAnalysis.SemanticModel model ) : bool
symbol this
model Microsoft.CodeAnalysis.SemanticModel
return bool

IsType() public static method

public static IsType ( this namedType, Type type ) : bool
namedType this
type System.Type
return bool

TraverseTypeAndItsBaseTypes() public static method

public static TraverseTypeAndItsBaseTypes ( this symbol ) : IEnumerable
symbol this
return IEnumerable