コード例 #1
0
 internal override string GetValueToDisplay()
 {
     return(_paramSymbol.ToDisplayString());
 }
コード例 #2
0
 private static KeyValuePair <string, string> CreateTypeConstraint(ITypeParameterSymbol typeParameter)
 {
     return(new KeyValuePair <string, string>(typeParameter.Name, typeParameter.ToDisplayString()));
 }
コード例 #3
0
 public static Diagnostic CreateGA0003(AttributeArgumentSyntax attributeArgumentSyntaxNode, ITypeParameterSymbol typeParameter, INamedTypeSymbol genericTypeArgument)
 {
     return(Diagnostic.Create(Instance[0003], attributeArgumentSyntaxNode?.GetLocation(), typeParameter.ToDisplayString(), genericTypeArgument.ToDisplayString()));
 }
コード例 #4
0
 public static Diagnostic CreateGA0013(AttributeSyntax attributeSyntaxNode, ITypeParameterSymbol typeParameter)
 {
     return(Diagnostic.Create(Instance[0013], attributeSyntaxNode?.GetLocation(), typeParameter.ToDisplayString()));
 }
コード例 #5
0
 public static Diagnostic CreateGA0002(AttributeArgumentSyntax attributeArgumentSyntaxNode, ITypeParameterSymbol typeParameter, ITypeSymbol argumentType)
 {
     return(Diagnostic.Create(Instance[0002], attributeArgumentSyntaxNode?.GetLocation(), typeParameter.ToDisplayString(), argumentType.ToDisplayString()));
 }