Lines Matching refs:that
2 // Use of this source code is governed by a BSD-style license that can be
32 KytheData* that = &KytheData::Get();
34 auto it = that->constants_.find(constant);
35 if (it != that->constants_.end()) return it->second;
39 kythe_entity_t constant_id = that->consumer_->AddDefinition(
41 that->constants_.insert(it, std::make_pair(constant, constant_id));
48 KytheData* that = &Get();
51 that->consumer_->AddUse(KytheConsumer::Kind::Constant, constant_id, use_pos);
56 KytheData* that = &KytheData::Get();
58 auto it = that->callables_.find(callable);
59 if (it != that->callables_.end()) return it->second;
63 kythe_entity_t callable_id = that->consumer_->AddDefinition(
66 that->callables_.insert(it, std::make_pair(callable, callable_id));
75 KytheData* that = &Get();
81 that->consumer_->AddCall(KytheConsumer::Kind::Function, caller_id, call_pos,
89 KytheData* that = &KytheData::Get();
90 // Check if we know that field already.
91 auto it = that->class_fields_.find(field);
92 if (it != that->class_fields_.end()) return it->second;
95 kythe_entity_t field_id = that->consumer_->AddDefinition(
97 that->class_fields_.insert(it, std::make_pair(field, field_id));
104 KytheData* that = &KytheData::Get();
108 that->consumer_->AddUse(KytheConsumer::Kind::ClassField, field_id, use_pos);
129 KytheData* that = &KytheData::Get();
131 auto it = that->local_bindings_.find(binding_index);
132 if (it != that->local_bindings_.end()) return it->second;
134 kythe_entity_t binding_id = that->consumer_->AddDefinition(
136 that->local_bindings_.insert(it, std::make_pair(binding_index, binding_id));
143 KytheData* that = &KytheData::Get();
147 that->consumer_->AddUse(KytheConsumer::Kind::Variable, binding_id, use_pos);
153 KytheData* that = &KytheData::Get();
157 that->consumer_->AddUse(KytheConsumer::Kind::Variable, binding_id, use_pos);
163 KytheData* that = &KytheData::Get();
164 // Check if we know that type already.
165 auto it = that->types_.find(type_decl);
166 if (it != that->types_.end()) return it->second;
169 kythe_entity_t type_id = that->consumer_->AddDefinition(
171 that->types_.insert(it, std::make_pair(type_decl, type_id));
178 KytheData* that = &KytheData::Get();
182 that->consumer_->AddUse(KytheConsumer::Kind::Type, type_id, use_pos);