Lines Matching defs:path
96 Node* State::GetNode(StringPiece path, uint64_t slash_bits) {
97 Node* node = LookupNode(path);
100 node = new Node(path.AsString(), slash_bits);
101 paths_[node->path()] = node;
105 Node* State::LookupNode(StringPiece path) const {
106 Paths::const_iterator i = paths_.find(path);
112 Node* State::SpellcheckNode(const string& path) {
120 i->first, path, kAllowReplacements, kMaxValidEditDistance);
129 void State::AddIn(Edge* edge, StringPiece path, uint64_t slash_bits) {
130 Node* node = GetNode(path, slash_bits);
136 bool State::AddOut(Edge* edge, StringPiece path, uint64_t slash_bits) {
137 Node* node = GetNode(path, slash_bits);
147 void State::AddValidation(Edge* edge, StringPiece path, uint64_t slash_bits) {
148 Node* node = GetNode(path, slash_bits);
154 bool State::AddDefault(StringPiece path, string* err) {
155 Node* node = LookupNode(path);
157 *err = "unknown target '" + path.AsString() + "'";
200 node->path().c_str(),