.NET CIL Browser - CilBrowser.Core

Type: CilBrowser.Core.SyntaxModel.JavaScript.JsRegexLiteralToken

Types in CilBrowser.Core.SyntaxModel.JavaScript namespace:

JsRegexLiteralToken

JsSyntaxProvider

JsTokenFactory

.class private auto ansi beforefieldinit CilBrowser.Core.SyntaxModel.JavaScript.JsRegexLiteralToken
extends [CilTools.BytecodeAnalysis]CilTools.Syntax.Tokens.SyntaxTokenDefinition
{

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

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

 .method private hidebysig static bool IsEscaped(
     string str, 
     int32 i
 ) cil managed
 {
  .maxstack  3
  .locals  init (char V_0,
     bool V_1,
     bool V_2,
     bool V_3)

           nop          
           ldarg.1      
           ldc.i4.0     
           cgt          
           ldc.i4.0     
           ceq          
           stloc.1      
           ldloc.1      
           brfalse.s    IL_0001
           ldc.i4.0     
           stloc.2      
           br.s         IL_0003
  IL_0001: ldarg.0      
           ldarg.1      
           ldc.i4.1     
           sub          
           callvirt     instance char [netstandard]System.String::get_Chars(int32)
           stloc.0      
           ldloc.0      
           ldc.i4.s     92
           ceq          
           ldc.i4.0     
           ceq          
           stloc.3      
           ldloc.3      
           brfalse.s    IL_0002
           ldc.i4.0     
           stloc.2      
           br.s         IL_0003
  IL_0002: ldarg.0      
           ldarg.1      
           ldc.i4.1     
           sub          
           call         bool CilBrowser.Core.SyntaxModel.JavaScript.JsRegexLiteralToken::IsEscaped(string, int32)
           ldc.i4.0     
           ceq          
           stloc.2      
           br.s         IL_0003
  IL_0003: ldloc.2      
           ret          
 }

 .method public hidebysig virtual instance bool HasContinuation(
     string prevPart, 
     class [CilTools.BytecodeAnalysis]CilTools.Syntax.Tokens.TokenReader reader
 ) cil managed
 {
  .maxstack  3
  .locals  init (char V_0,
     bool V_1,
     bool V_2,
     bool V_3,
     bool V_4)

           nop          
           ldarg.1      
           callvirt     instance int32 [netstandard]System.String::get_Length()
           ldc.i4.1     
           cgt          
           ldc.i4.0     
           ceq          
           stloc.1      
           ldloc.1      
           brfalse.s    IL_0001
           ldc.i4.1     
           stloc.2      
           br.s         IL_0004
  IL_0001: ldarg.1      
           ldarg.1      
           callvirt     instance int32 [netstandard]System.String::get_Length()
           ldc.i4.1     
           sub          
           callvirt     instance char [netstandard]System.String::get_Chars(int32)
           stloc.0      
           ldloc.0      
           ldc.i4.s     47
           ceq          
           stloc.3      
           ldloc.3      
           brfalse.s    IL_0003
           nop          
           ldarg.1      
           ldarg.1      
           callvirt     instance int32 [netstandard]System.String::get_Length()
           ldc.i4.1     
           sub          
           call         bool CilBrowser.Core.SyntaxModel.JavaScript.JsRegexLiteralToken::IsEscaped(string, int32)
           stloc.s      V_4
           ldloc.s      V_4
           brfalse.s    IL_0002
           ldc.i4.1     
           stloc.2      
           br.s         IL_0004
  IL_0002: ldc.i4.0     
           stloc.2      
           br.s         IL_0004
  IL_0003: ldc.i4.1     
           stloc.2      
           br.s         IL_0004
  IL_0004: ldloc.2      
           ret          
 }

 .method public hidebysig virtual instance bool HasStart(
     class [CilTools.BytecodeAnalysis]CilTools.Syntax.Tokens.TokenReader reader
 ) cil managed
 {
  .maxstack  2
  .locals  init (char V_0,
     string V_1,
     string V_2,
     bool V_3,
     bool V_4,
     bool V_5,
     bool V_6,
     int32 V_7,
     bool V_8,
     bool V_9,
     bool V_10,
     bool V_11)

           nop          
           ldarg.1      
           callvirt     instance char [CilTools.BytecodeAnalysis]CilTools.Syntax.Tokens.TokenReader::PeekChar()
           stloc.0      
           ldloc.0      
           ldc.i4.s     47
           ceq          
           ldc.i4.0     
           ceq          
           stloc.3      
           ldloc.3      
           brfalse.s    IL_0001
           ldc.i4.0     
           stloc.s      V_4
           br           IL_0013
  IL_0001: ldarg.1      
           ldc.i4.2     
           callvirt     instance string [CilTools.BytecodeAnalysis]CilTools.Syntax.Tokens.TokenReader::PeekString(int32)
           stloc.1      
           ldloc.1      
           callvirt     instance int32 [netstandard]System.String::get_Length()
           ldc.i4.2     
           clt          
           stloc.s      V_5
           ldloc.s      V_5
           brfalse.s    IL_0002
           ldc.i4.0     
           stloc.s      V_4
           br           IL_0013
  IL_0002: ldloc.1      
           ldc.i4.1     
           callvirt     instance char [netstandard]System.String::get_Chars(int32)
           ldc.i4.s     47
           beq.s        IL_0003
           ldloc.1      
           ldc.i4.1     
           callvirt     instance char [netstandard]System.String::get_Chars(int32)
           ldc.i4.s     42
           ceq          
           br.s         IL_0004
  IL_0003: ldc.i4.1     
  IL_0004: stloc.s      V_6
           ldloc.s      V_6
           brfalse.s    IL_0005
           ldc.i4.0     
           stloc.s      V_4
           br           IL_0013
  IL_0005: ldarg.1      
           callvirt     instance string [CilTools.BytecodeAnalysis]CilTools.Syntax.Tokens.TokenReader::GetSourceString()
           stloc.2      
           ldarg.1      
           callvirt     instance int32 [CilTools.BytecodeAnalysis]CilTools.Syntax.Tokens.TokenReader::get_Position()
           ldc.i4.1     
           add          
           stloc.s      V_7
           br.s         IL_0012
  IL_0006: nop          
           ldloc.s      V_7
           ldarg.1      
           callvirt     instance int32 [CilTools.BytecodeAnalysis]CilTools.Syntax.Tokens.TokenReader::get_Position()
           sub          
           ldc.i4       2000
           cgt          
           stloc.s      V_8
           ldloc.s      V_8
           brfalse.s    IL_0007
           nop          
           ldc.i4.0     
           stloc.s      V_4
           br.s         IL_0013
  IL_0007: ldloc.2      
           ldloc.s      V_7
           callvirt     instance char [netstandard]System.String::get_Chars(int32)
           ldc.i4.s     13
           beq.s        IL_0008
           ldloc.2      
           ldloc.s      V_7
           callvirt     instance char [netstandard]System.String::get_Chars(int32)
           ldc.i4.s     10
           ceq          
           br.s         IL_0009
  IL_0008: ldc.i4.1     
  IL_0009: stloc.s      V_9
           ldloc.s      V_9
           brfalse.s    IL_0010
           ldc.i4.0     
           stloc.s      V_4
           br.s         IL_0013
  IL_0010: ldloc.2      
           ldloc.s      V_7
           callvirt     instance char [netstandard]System.String::get_Chars(int32)
           ldc.i4.s     47
           ceq          
           stloc.s      V_10
           ldloc.s      V_10
           brfalse.s    IL_0011
           ldc.i4.1     
           stloc.s      V_4
           br.s         IL_0013
  IL_0011: nop          
           ldloc.s      V_7
           ldc.i4.1     
           add          
           stloc.s      V_7
  IL_0012: ldloc.s      V_7
           ldloc.2      
           callvirt     instance int32 [netstandard]System.String::get_Length()
           clt          
           stloc.s      V_11
           ldloc.s      V_11
           brtrue.s     IL_0006
           ldc.i4.0     
           stloc.s      V_4
           br.s         IL_0013
  IL_0013: ldloc.s      V_4
           ret          
 }

}

Back to table of contents


Generated by CIL Browser