internal static bool IsSameType(this ExpressionSyntax expression, QualifiedType metadataName, SemanticModel semanticModel, CancellationToken cancellationToken)
        {
            var type = semanticModel?.Compilation.GetTypeByMetadataName(metadataName.FullName);

            return(expression.IsSameType(type, semanticModel, cancellationToken));
        }
示例#2
0
 internal static bool IsEither(this ITypeSymbol symbol, QualifiedType t1, QualifiedType t2)
 {
     return(symbol == t1 || symbol == t2);
 }
 internal static bool IsSameType(this ExpressionSyntax expression, QualifiedType metadataName, SyntaxNodeAnalysisContext context)
 {
     return(expression.IsSameType(metadataName, context.SemanticModel, context.CancellationToken));
 }
示例#4
0
 public QualifiedProperty(QualifiedType containingType, string name)
     : base(containingType, name)
 {
 }