public static SpanConstructor Comment(this SpanFactory self, string content, CSharpSymbolType type)
 {
     return(self.Span(SpanKind.Comment, content, type));
 }
 public static SpanConstructor MetaMarkup(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.MetaCode, content, markup: true));
 }
 public static SpanConstructor MetaMarkup(this SpanFactory self, string content, HtmlSymbolType type)
 {
     return(self.Span(SpanKind.MetaCode, content, type));
 }
 public static SpanConstructor MarkupTransition(this SpanFactory self)
 {
     return(self.Span(SpanKind.Transition, SyntaxConstants.TransitionString, markup: true)
            .Accepts(AcceptedCharacters.None));
 }
 public static SpanConstructor MarkupTransition(this SpanFactory self, string content, HtmlSymbolType type)
 {
     return(self.Span(SpanKind.Transition, content, type).Accepts(AcceptedCharacters.None));
 }
 public static SpanConstructor CodeTransition(this SpanFactory self, CSharpSymbolType type)
 {
     return(self.Span(SpanKind.Transition, SyntaxConstants.TransitionString, type)
            .Accepts(AcceptedCharacters.None));
 }
 public static SpanConstructor CodeTransition(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.Transition, content, markup: false).Accepts(AcceptedCharacters.None));
 }
 public static UnclassifiedCodeSpanConstructor Code(this SpanFactory self, string content)
 {
     return(new UnclassifiedCodeSpanConstructor(
                self.Span(SpanKind.Code, content, markup: false)));
 }
        public static UnclassifiedCodeSpanConstructor EmptyCSharp(this SpanFactory self)
        {
            var symbol = new CSharpSymbol(self.LocationTracker.CurrentLocation, string.Empty, CSharpSymbolType.Unknown);

            return(new UnclassifiedCodeSpanConstructor(self.Span(SpanKind.Code, symbol)));
        }
Ejemplo n.º 10
0
 public static SpanConstructor Markup(this SpanFactory self, params string[] content)
 {
     return(self.Span(SpanKind.Markup, content, markup: true).With(new MarkupChunkGenerator()));
 }