Span() public method

public Span ( SpanKind kind ) : SpanConstructor
kind SpanKind
return SpanConstructor
Ejemplo n.º 1
0
 public static UnclassifiedCodeSpanConstructor EmptyVB(this SpanFactory self)
 {
     return(new UnclassifiedCodeSpanConstructor(
                self.Span(SpanKind.Code, new VBSymbol(self.LocationTracker.CurrentLocation, String.Empty, VBSymbolType.Unknown))));
 }
Ejemplo n.º 2
0
 public static SpanConstructor EmptyHtml(this SpanFactory self)
 {
     return(self.Span(SpanKind.Markup, new HtmlSymbol(self.LocationTracker.CurrentLocation, String.Empty, HtmlSymbolType.Unknown))
            .With(new MarkupCodeGenerator()));
 }
Ejemplo n.º 3
0
 public static SpanConstructor Comment(this SpanFactory self, string content, HtmlSymbolType type)
 {
     return(self.Span(SpanKind.Comment, content, type));
 }
Ejemplo n.º 4
0
 public static SpanConstructor Markup(this SpanFactory self, params string[] content)
 {
     return(self.Span(SpanKind.Markup, content, markup: true).With(new MarkupCodeGenerator()));
 }
Ejemplo n.º 5
0
 public static SpanConstructor MetaMarkup(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.MetaCode, content, markup: true));
 }
Ejemplo n.º 6
0
 public static SpanConstructor MetaMarkup(this SpanFactory self, string content, HtmlSymbolType type)
 {
     return(self.Span(SpanKind.MetaCode, content, type));
 }
Ejemplo n.º 7
0
 public static SpanConstructor MarkupTransition(this SpanFactory self, string content, HtmlSymbolType type)
 {
     return(self.Span(SpanKind.Transition, content, type).Accepts(AcceptedCharacters.None));
 }
Ejemplo n.º 8
0
 public static SpanConstructor MarkupTransition(this SpanFactory self)
 {
     return(self.Span(SpanKind.Transition, SyntaxConstants.TransitionString, markup: true).Accepts(AcceptedCharacters.None));
 }
Ejemplo n.º 9
0
 public static SpanConstructor CodeTransition(this SpanFactory self, VBSymbolType type)
 {
     return(self.Span(SpanKind.Transition, SyntaxConstants.TransitionString, type).Accepts(AcceptedCharacters.None));
 }
Ejemplo n.º 10
0
 public static SpanConstructor CodeTransition(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.Transition, content, markup: false).Accepts(AcceptedCharacters.None));
 }
Ejemplo n.º 11
0
 public static UnclassifiedCodeSpanConstructor Code(this SpanFactory self, string content)
 {
     return(new UnclassifiedCodeSpanConstructor(
                self.Span(SpanKind.Code, content, markup: false)));
 }