Ejemplo n.º 1
0
        public void Update(ParseTree parseTree)
        {
            _parseTree = parseTree;

            if (_parseTree.Root != null && _parseTree.Root.AstNode != null)
            {
                _root = _parseTree.Root.AstNode as LuaChunkNode;
                WalkASTForDeclarations();
            }
        }
Ejemplo n.º 2
0
 public LuaModel(ParseTree parseTree, string filePath)
 {
     _parseTree = parseTree;
     _entry     = null;
     _filePath  = filePath;
     if (_parseTree.Root != null)
     {
         _root = _parseTree.Root.AstNode as LuaChunkNode;
         WalkASTForDeclarations();
     }
 }
Ejemplo n.º 3
0
 public LuaModel(ParseTree parseTree, AnalysisEntry entry)
 {
     _parseTree = parseTree;
     _entry     = entry;
     _filePath  = entry.FilePath;
     if (_parseTree.Root != null)
     {
         _root = _parseTree.Root.AstNode as LuaChunkNode;
         WalkASTForDeclarations();
     }
 }