Esempio n. 1
0
        public override string GetErrorDisplayString(ISymbol symbol)
        {
            // show extra info for assembly if possible such as version, public key token etc.
            if (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace)
            {
                return(symbol.ToString());
            }

            return(SymbolDisplay.ToDisplayString(symbol, SymbolDisplayFormat.CSharpShortErrorMessageFormat));
        }
Esempio n. 2
0
        public override string ConvertSymbolToString(int errorCode, ISymbol symbol)
        {
            // show extra info for assembly if possible such as version, publictoken and etc
            if (symbol.Kind == SymbolKind.Assembly || symbol.Kind == SymbolKind.Namespace)
            {
                return(symbol.ToString());
            }

            return(SymbolDisplay.ToDisplayString(symbol, SymbolDisplayFormat.CSharpShortErrorMessageFormat));
        }
Esempio n. 3
0
 string ISymbol.ToDisplayString(SymbolDisplayFormat format)
 {
     return(SymbolDisplay.ToDisplayString(this, format));
 }
Esempio n. 4
0
 public string ToDisplayString(SymbolDisplayFormat format = null)
 {
     return(SymbolDisplay.ToDisplayString(this, format));
 }