public void Update(ParseTree parseTree) { _parseTree = parseTree; if (_parseTree.Root != null && _parseTree.Root.AstNode != null) { _root = _parseTree.Root.AstNode as LuaChunkNode; WalkASTForDeclarations(); } }
public LuaModel(ParseTree parseTree, string filePath) { _parseTree = parseTree; _entry = null; _filePath = filePath; if (_parseTree.Root != null) { _root = _parseTree.Root.AstNode as LuaChunkNode; WalkASTForDeclarations(); } }
public LuaModel(ParseTree parseTree, AnalysisEntry entry) { _parseTree = parseTree; _entry = entry; _filePath = entry.FilePath; if (_parseTree.Root != null) { _root = _parseTree.Root.AstNode as LuaChunkNode; WalkASTForDeclarations(); } }