Exemplo n.º 1
0
 public override void VisitConstLiteralType(IConstLiteralTypeSymbol constLiteralTypeSymbol)
 {
     // TODO: Improve symbol display for const literal
     if (constLiteralTypeSymbol.Value is string)
     {
         builder.Add(CreatePart(SymbolDisplayPartKind.StringLiteral, constLiteralTypeSymbol, (string)constLiteralTypeSymbol.Value));
     }
     else
     {
         builder.Add(CreatePart(SymbolDisplayPartKind.NumericLiteral, constLiteralTypeSymbol, constLiteralTypeSymbol.Value.ToString()));
     }
 }
Exemplo n.º 2
0
 public virtual TResult VisitConstLiteralType(IConstLiteralTypeSymbol symbol)
 {
     return(DefaultVisit(symbol));
 }
Exemplo n.º 3
0
 public virtual void VisitConstLiteralType(IConstLiteralTypeSymbol constLiteralTypeSymbol)
 {
     DefaultVisit(constLiteralTypeSymbol);
 }