Ejemplo n.º 1
0
 public SymbolDescriptionVisitor(SymbolDescriptionFormat format, Location location, SyntaxBinding binding, IFormatProvider formatProvider)
 {
     this.format         = format;
     this.location       = location;
     this.binding        = binding;
     this.formatProvider = formatProvider;
 }
        public static ReadOnlyArray<SymbolDescriptionPart> GetDescriptionInContext(this Symbol symbol, SymbolDescriptionFormat format, IFormatProvider formatProvider, Location location, SyntaxBinding binding)
        {
            var builder = ArrayBuilder<SymbolDescriptionPart>.GetInstance();

            var visitor = new SymbolDescriptionVisitor(format, location, binding, formatProvider);
            visitor.Visit(symbol, builder);

            return builder.ToReadOnlyAndFree();
        }
Ejemplo n.º 3
0
 public static ReadOnlyArray <SymbolDescriptionPart> GetDescription(this Symbol symbol, SymbolDescriptionFormat format, IFormatProvider formatProvider)
 {
     return(GetDescriptionInContext(symbol, format, formatProvider, location: null, binding: null));
 }
Ejemplo n.º 4
0
 public static string GetDescriptionStringInContext(this Symbol symbol, SymbolDescriptionFormat format, IFormatProvider formatProvider, Location location, SyntaxBinding binding)
 {
     return(GetDescriptionString(GetDescriptionInContext(symbol, format, formatProvider, location, binding)));
 }
Ejemplo n.º 5
0
 public static string GetDescriptionString(this Symbol symbol, SymbolDescriptionFormat format, IFormatProvider formatProvider)
 {
     return(GetDescriptionString(GetDescriptionInContext(symbol, format, formatProvider, location: null, binding: null)));
 }
Ejemplo n.º 6
0
        public static ReadOnlyArray <SymbolDescriptionPart> GetDescriptionInContext(this Symbol symbol, SymbolDescriptionFormat format, IFormatProvider formatProvider, Location location, SyntaxBinding binding)
        {
            var builder = ArrayBuilder <SymbolDescriptionPart> .GetInstance();

            var visitor = new SymbolDescriptionVisitor(format, location, binding, formatProvider);

            visitor.Visit(symbol, builder);

            return(builder.ToReadOnlyAndFree());
        }
 public static ReadOnlyArray<SymbolDescriptionPart> GetDescription(this Symbol symbol, SymbolDescriptionFormat format, IFormatProvider formatProvider)
 {
     return GetDescriptionInContext(symbol, format, formatProvider, location: null, binding: null);
 }
 public static string GetDescriptionStringInContext(this Symbol symbol, SymbolDescriptionFormat format, IFormatProvider formatProvider, Location location, SyntaxBinding binding)
 {
     return GetDescriptionString(GetDescriptionInContext(symbol, format, formatProvider, location, binding));
 }
 public static string GetDescriptionString(this Symbol symbol, SymbolDescriptionFormat format, IFormatProvider formatProvider)
 {
     return GetDescriptionString(GetDescriptionInContext(symbol, format, formatProvider, location: null, binding: null));
 }