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(); }
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 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 string GetDescriptionStringInContext(this Symbol symbol, SymbolDescriptionFormat format, IFormatProvider formatProvider, Location location, SyntaxBinding binding) { return GetDescriptionString(GetDescriptionInContext(symbol, format, formatProvider, location, binding)); }