.NET CIL Browser - CilBrowser.Core

Type: CilBrowser.Core.SyntaxModel.Markup.MarkupTokenFactory

Types in CilBrowser.Core.SyntaxModel.Markup namespace:

MarkupTokenFactory

XmlCommentToken

XmlTextLiteralToken

.class public auto ansi sealed beforefieldinit CilBrowser.Core.SyntaxModel.Markup.MarkupTokenFactory
extends [CilTools.BytecodeAnalysis]CilTools.Syntax.SyntaxFactory
{

 .field public static initonly class CilBrowser.Core.SyntaxModel.Markup.MarkupTokenFactory Value

 .method private hidebysig specialname rtspecialname instance void .ctor() cil managed
 {
  .maxstack  8

           ldarg.0      
           call         instance void [CilTools.BytecodeAnalysis]CilTools.Syntax.SyntaxFactory::.ctor()
           nop          
           nop          
           ret          
 }

 .method private hidebysig specialname rtspecialname static void .cctor() cil managed
 {
  .maxstack  8

           newobj       instance void CilBrowser.Core.SyntaxModel.Markup.MarkupTokenFactory::.ctor()
           stsfld       class CilBrowser.Core.SyntaxModel.Markup.MarkupTokenFactory CilBrowser.Core.SyntaxModel.Markup.MarkupTokenFactory::Value
           ret          
 }

 .method private hidebysig static valuetype [CilTools.SourceCode]CilTools.SourceCode.Common.TokenKind GetKind(
     string token
 ) cil managed
 {
  .maxstack  2
  .locals  init (bool V_0,
     valuetype [CilTools.SourceCode]CilTools.SourceCode.Common.TokenKind V_1,
     bool V_2,
     bool V_3)

           nop          
           ldarg.0      
           callvirt     instance int32 [netstandard]System.String::get_Length()
           ldc.i4.0     
           ceq          
           stloc.0      
           ldloc.0      
           brfalse.s    IL_0001
           ldc.i4.0     
           stloc.1      
           br.s         IL_0006
  IL_0001: ldarg.0      
           ldc.i4.0     
           callvirt     instance char [netstandard]System.String::get_Chars(int32)
           call         bool [netstandard]System.Char::IsLetter(char)
           brtrue.s     IL_0002
           ldarg.0      
           ldc.i4.0     
           callvirt     instance char [netstandard]System.String::get_Chars(int32)
           ldc.i4.s     95
           ceq          
           br.s         IL_0003
  IL_0002: ldc.i4.1     
  IL_0003: stloc.2      
           ldloc.2      
           brfalse.s    IL_0004
           nop          
           ldc.i4.1     
           stloc.1      
           br.s         IL_0006
  IL_0004: ldarg.0      
           ldstr        "<!--"
           callvirt     instance bool [netstandard]System.String::StartsWith(string)
           stloc.3      
           ldloc.3      
           brfalse.s    IL_0005
           nop          
           ldc.i4.s     10
           stloc.1      
           br.s         IL_0006
  IL_0005: ldarg.0      
           call         valuetype [CilTools.SourceCode]CilTools.SourceCode.Common.TokenKind CilBrowser.Core.SyntaxModel.SourceParser::GetKindCommon(string)
           stloc.1      
           br.s         IL_0006
  IL_0006: ldloc.1      
           ret          
 }

 .method public hidebysig virtual instance class [CilTools.BytecodeAnalysis]CilTools.Syntax.SyntaxNode CreateNode(
     string content, 
     string leadingWhitespace, 
     string trailingWhitespace
 ) cil managed
 {
  .maxstack  4
  .locals  init (valuetype [CilTools.SourceCode]CilTools.SourceCode.Common.TokenKind V_0,
     class [CilTools.BytecodeAnalysis]CilTools.Syntax.SyntaxNode V_1)

           nop          
           ldarg.1      
           call         valuetype [CilTools.SourceCode]CilTools.SourceCode.Common.TokenKind CilBrowser.Core.SyntaxModel.Markup.MarkupTokenFactory::GetKind(string)
           stloc.0      
           ldarg.1      
           ldloc.0      
           ldarg.2      
           ldarg.3      
           newobj       instance void [CilTools.SourceCode]CilTools.SourceCode.Common.SourceToken::.ctor(string, valuetype [CilTools.SourceCode]CilTools.SourceCode.Common.TokenKind, string, string)
           stloc.1      
           br.s         IL_0001
  IL_0001: ldloc.1      
           ret          
 }

}

Back to table of contents


Generated by CIL Browser