Exemple #1
0
 private static TypeSyntax AvailableTypeName(SemanticModel semanticModel, TextSpan span, ITypeSymbol t)
 {
     if (semanticModel.CanReferenceNamedSymbol(span, t.Name))
     {
         return(SyntaxFactory.ParseTypeName(t.Name));
     }
     return(SyntaxFactory.ParseTypeName(t.ToDisplayString()));
 }