How parse some local file using internal atom tree sitter

Try write package for fast autocomplete. For current open file i can get syntax tree using

let syntaxTree = editor.getBuffer().getLanguageMode().tree;

How i can make it for other file in project not open it in editor?

You can use Node’s fs module or Atom’s File API to read a file on disk.