Пример #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();
        }
Пример #3
0
 public static string GetDescriptionStringInContext(this Symbol symbol, SymbolDescriptionFormat format, IFormatProvider formatProvider, Location location, SyntaxBinding binding)
 {
     return(GetDescriptionString(GetDescriptionInContext(symbol, format, formatProvider, location, binding)));
 }
Пример #4
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 string GetDescriptionStringInContext(this Symbol symbol, SymbolDescriptionFormat format, IFormatProvider formatProvider, Location location, SyntaxBinding binding)
 {
     return GetDescriptionString(GetDescriptionInContext(symbol, format, formatProvider, location, binding));
 }