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)); }
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)); }
public QualifiedProperty(QualifiedType containingType, string name) : base(containingType, name) { }