コード例 #1
0
 public static SpanConstructor Comment(this SpanFactory self, string content, CSharpSymbolType type)
 {
     return(self.Span(SpanKind.Comment, content, type));
 }
コード例 #2
0
 public static SpanConstructor MetaMarkup(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.MetaCode, content, markup: true));
 }
コード例 #3
0
 public static SpanConstructor MetaMarkup(this SpanFactory self, string content, HtmlSymbolType type)
 {
     return(self.Span(SpanKind.MetaCode, content, type));
 }
コード例 #4
0
 public static SpanConstructor MarkupTransition(this SpanFactory self)
 {
     return(self.Span(SpanKind.Transition, SyntaxConstants.TransitionString, markup: true)
            .Accepts(AcceptedCharacters.None));
 }
コード例 #5
0
 public static SpanConstructor MarkupTransition(this SpanFactory self, string content, HtmlSymbolType type)
 {
     return(self.Span(SpanKind.Transition, content, type).Accepts(AcceptedCharacters.None));
 }
コード例 #6
0
 public static SpanConstructor CodeTransition(this SpanFactory self, CSharpSymbolType type)
 {
     return(self.Span(SpanKind.Transition, SyntaxConstants.TransitionString, type)
            .Accepts(AcceptedCharacters.None));
 }
コード例 #7
0
 public static SpanConstructor CodeTransition(this SpanFactory self, string content)
 {
     return(self.Span(SpanKind.Transition, content, markup: false).Accepts(AcceptedCharacters.None));
 }
コード例 #8
0
 public static UnclassifiedCodeSpanConstructor Code(this SpanFactory self, string content)
 {
     return(new UnclassifiedCodeSpanConstructor(
                self.Span(SpanKind.Code, content, markup: false)));
 }
コード例 #9
0
        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)));
        }
コード例 #10
0
 public static SpanConstructor Markup(this SpanFactory self, params string[] content)
 {
     return(self.Span(SpanKind.Markup, content, markup: true).With(new MarkupChunkGenerator()));
 }