Modules | Files | Inheritance Tree | Inheritance Graph | Name Index | Config
module Synopsis::Core::FileTree
class FileTree
Files: Synopsis/Core/FileTree.py

Maintains a tree of directories and files.

The FileTree is constructed using the SourceFiles in the AST. Each SourceFile has a list of declarations in it already. The FileTree object organises these lists into a tree structure, where each node is a directory or a source file.


Classes Summary:
Node
Base class for directories and files in the tree. [Source]
Directory
FileTree node for directories. [Source]
File
FileTree node for files. [Source]

Operations Summary:
 __init__(self) [Source]
 __add_dir(self, path)
Recursively add a directory to the tree [Source]
 __add_file(self, file, decls)
Recursively add a file to the tree [Source]
 set_ast(self, ast)
Sets the AST to use and builds the tree of Nodes [Source]
 root(self)
Returns the root node in the file tree, which is a Directory object. [Source]

Operation Details:
  root(self)

Returns the root node in the file tree, which is a Directory object. The root node is created by set_ast().