C# Class Runt.Core.Model.FileTree.DirectoryEntry

Inheritance: Entry
Show file Open project: Runt-Editor/Runt

Protected Properties

Property Type Description
_children Lazy>
_dir System.IO.DirectoryInfo
_directories ImmutableList
_files ImmutableList

Public Methods

Method Description
AsOpen ( bool open, Newtonsoft.Json.Linq.JObject c ) : Entry
Create ( DirectoryInfo dir, string relativePath ) : ImmutableList>.Tuple
WithChild ( int index, Entry child, Newtonsoft.Json.Linq.JObject changes, Newtonsoft.Json.Linq.JObject subChange ) : Entry

Protected Methods

Method Description
ChangeIndex ( int index, Entry newVal, Newtonsoft.Json.Linq.JObject changes, Newtonsoft.Json.Linq.JObject subChanges ) : ImmutableList>.Tuple
DirectoryEntry ( string rel, bool isOpen, DirectoryInfo dir, ImmutableList directories, ImmutableList files ) : System

Method Details

AsOpen() public method

public AsOpen ( bool open, Newtonsoft.Json.Linq.JObject c ) : Entry
open bool
c Newtonsoft.Json.Linq.JObject
return Entry

ChangeIndex() protected method

protected ChangeIndex ( int index, Entry newVal, Newtonsoft.Json.Linq.JObject changes, Newtonsoft.Json.Linq.JObject subChanges ) : ImmutableList>.Tuple
index int
newVal Entry
changes Newtonsoft.Json.Linq.JObject
subChanges Newtonsoft.Json.Linq.JObject
return ImmutableList>.Tuple

Create() public static method

public static Create ( DirectoryInfo dir, string relativePath ) : ImmutableList>.Tuple
dir System.IO.DirectoryInfo
relativePath string
return ImmutableList>.Tuple

DirectoryEntry() protected method

protected DirectoryEntry ( string rel, bool isOpen, DirectoryInfo dir, ImmutableList directories, ImmutableList files ) : System
rel string
isOpen bool
dir System.IO.DirectoryInfo
directories ImmutableList
files ImmutableList
return System

WithChild() public method

public WithChild ( int index, Entry child, Newtonsoft.Json.Linq.JObject changes, Newtonsoft.Json.Linq.JObject subChange ) : Entry
index int
child Entry
changes Newtonsoft.Json.Linq.JObject
subChange Newtonsoft.Json.Linq.JObject
return Entry

Property Details

_children protected property

protected Lazy> _children
return Lazy>

_dir protected property

protected DirectoryInfo,System.IO _dir
return System.IO.DirectoryInfo

_directories protected property

protected ImmutableList _directories
return ImmutableList

_files protected property

protected ImmutableList _files
return ImmutableList