.NET CIL Browser - CilBrowser.Core

Type: CilBrowser.Core.Structure.FileNode

Types in CilBrowser.Core.Structure namespace:

DirectoryNode

<EnumChildNodes>d__16

<get_Directories>d__9

<get_Pages>d__11

FileNode

PageNode

SourceIndexer

TreeNode

TreeNodeKind

TypeNode

.class public auto ansi sealed beforefieldinit CilBrowser.Core.Structure.FileNode
extends CilBrowser.Core.Structure.PageNode
{

 .field private string _filepath

 .property instance string FilePath()
 {
  .get instance string CilBrowser.Core.Structure.FileNode::get_FilePath()
 }

 .property instance valuetype CilBrowser.Core.Structure.TreeNodeKind Kind()
 {
  .get instance valuetype CilBrowser.Core.Structure.TreeNodeKind CilBrowser.Core.Structure.FileNode::get_Kind()
 }

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

           ldarg.0      
           call         instance void CilBrowser.Core.Structure.PageNode::.ctor()
           nop          
           nop          
           ldarg.0      
           ldarg.1      
           stfld        string CilBrowser.Core.Structure.FileNode::_filepath
           ldarg.0      
           ldarg.1      
           call         string [netstandard]System.IO.Path::GetFileName(string)
           stfld        string CilBrowser.Core.Structure.TreeNode::_name
           ldarg.0      
           ldarg.0      
           ldfld        string CilBrowser.Core.Structure.TreeNode::_name
           stfld        string CilBrowser.Core.Structure.TreeNode::_displayName
           ret          
 }

 .method public hidebysig specialname instance string get_FilePath() cil managed
 {
  .maxstack  1
  .locals  init (string V_0)

           nop          
           ldarg.0      
           ldfld        string CilBrowser.Core.Structure.FileNode::_filepath
           stloc.0      
           br.s         IL_0001
  IL_0001: ldloc.0      
           ret          
 }

 .method public hidebysig virtual specialname instance valuetype CilBrowser.Core.Structure.TreeNodeKind get_Kind() cil managed
 {
  .maxstack  8

           ldc.i4.1     
           ret          
 }

 .method public hidebysig virtual instance void Render(
     class CilBrowser.Core.HtmlGenerator generator, 
     class CilBrowser.Core.CilBrowserOptions options, 
     class [netstandard]System.IO.TextWriter target
 ) cil managed
 {
  .maxstack  5
  .locals  init (string V_0,
     string V_1,
     string V_2,
     class CilBrowser.Core.Structure.DirectoryNode V_3,
     bool V_4,
     class CilBrowser.Core.Structure.PageNode[] V_5,
     bool V_6,
     class [netstandard]System.IO.IOException V_7)

           nop          
  .try
  {
            nop          
            ldarg.0      
            ldfld        string CilBrowser.Core.Structure.FileNode::_filepath
            ldarg.2      
            callvirt     instance class [netstandard]System.Text.Encoding CilBrowser.Core.CilBrowserOptions::GetEncoding()
            call         string [netstandard]System.IO.File::ReadAllText(string, class [netstandard]System.Text.Encoding)
            stloc.1      
            ldsfld       string [netstandard]System.String::Empty
            stloc.2      
            ldarg.0      
            ldfld        class CilBrowser.Core.Structure.TreeNode CilBrowser.Core.Structure.TreeNode::_parent
            isinst       CilBrowser.Core.Structure.DirectoryNode
            stloc.3      
            ldloc.3      
            ldnull       
            cgt.un       
            stloc.s      V_4
            ldloc.s      V_4
            brfalse.s    IL_0002
            nop          
            ldloc.3      
            callvirt     instance class [netstandard]System.Collections.Generic.IEnumerable`1<class CilBrowser.Core.Structure.PageNode> CilBrowser.Core.Structure.DirectoryNode::get_Pages()
            call         !!0[] [netstandard]System.Linq.Enumerable::ToArray<class CilBrowser.Core.Structure.PageNode>(class [netstandard]System.Collections.Generic.IEnumerable`1<!!0>)
            stloc.s      V_5
            ldloc.s      V_5
            ldlen        
            conv.i4      
            ldc.i4.1     
            cgt          
            stloc.s      V_6
            ldloc.s      V_6
            brfalse.s    IL_0001
            nop          
            ldarg.0      
            ldloc.3      
            callvirt     instance string CilBrowser.Core.Structure.TreeNode::get_Name()
            ldloc.s      V_5
            ldloc.3      
            callvirt     instance valuetype CilBrowser.Core.Structure.TreeNodeKind CilBrowser.Core.Structure.TreeNode::get_Kind()
            call         string CilBrowser.Core.WebsiteGenerator::VisualizeNavigationPanel(class CilBrowser.Core.Structure.PageNode, string, class CilBrowser.Core.Structure.PageNode[], valuetype CilBrowser.Core.Structure.TreeNodeKind)
            stloc.2      
            nop          
   IL_0001: nop          
   IL_0002: ldarg.1      
            ldloc.1      
            ldarg.0      
            ldfld        string CilBrowser.Core.Structure.TreeNode::_name
            ldloc.2      
            ldarg.2      
            callvirt     instance string CilBrowser.Core.CilBrowserOptions::get_SourceControlURL()
            callvirt     instance string CilBrowser.Core.HtmlGenerator::VisualizeSourceFile(string, string, string, string)
            stloc.0      
            nop          
            leave.s      IL_0003
  }
  catch [netstandard]System.IO.IOException
  {
            stloc.s      V_7
            nop          
            ldloc.s      V_7
            call         string CilBrowser.Core.HtmlGenerator::VisualizeException(class [netstandard]System.Exception)
            stloc.0      
            ldstr        "Failed to render HTML for: "
            ldarg.0      
            ldfld        string CilBrowser.Core.Structure.TreeNode::_name
            call         string [netstandard]System.String::Concat(string, string)
            call         void [netstandard]System.Console::WriteLine(string)
            nop          
            ldloc.s      V_7
            callvirt     instance string [netstandard]System.Object::ToString()
            call         void [netstandard]System.Console::WriteLine(string)
            nop          
            nop          
            leave.s      IL_0003
  }
  IL_0003: ldarg.3      
           ldloc.0      
           callvirt     instance void [netstandard]System.IO.TextWriter::Write(string)
           nop          
           ret          
 }

}

Back to table of contents


Generated by CIL Browser