diff options
Diffstat (limited to 'src/state.cc')
-rw-r--r-- | src/state.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/state.cc b/src/state.cc index 87d824b..9519856 100644 --- a/src/state.cc +++ b/src/state.cc @@ -59,6 +59,13 @@ Node* State::LookupNode(const string& path) { return file->node_; } +Node* State::SpellcheckNode(const string& path) { + FileStat* file = stat_cache_.SpellcheckFile(path); + if (!file || !file->node_) + return NULL; + return file->node_; +} + void State::AddIn(Edge* edge, const string& path) { Node* node = GetNode(path); edge->inputs_.push_back(node); |