Lines Matching defs:has

99 Matcher<const std::vector<CodeCompletion> &> has(std::string Name) {
102 Matcher<const std::vector<CodeCompletion> &> has(std::string Name,
273 AllOf(has("FooBar"), has("FooBaz"), Not(has("Qux"))));
280 AllOf(has("Car"), Not(has("MotorCar")), Not(has("MotorCarIndex"))));
282 AllOf(has("MotorCar"), has("MotorCarIndex")));
321 AllOf(has("method"), has("field"), Not(has("ClassWithMembers")),
322 Not(has("operator=")), Not(has("~ClassWithMembers"))));
324 has("private_field"));
328 Not(AnyOf(has("global_var"), has("index_var"), has("global_func"),
329 has("global_func()"), has("index_func"), has("GlobalClass"),
330 has("IndexClass"), has("MACRO"), has("LocalClass"))));
369 Not(AnyOf(has("method"), has("method()"), has("field"))));
372 AllOf(has("global_var"), has("index_var"), has("global_func"),
373 has("index_func" /* our fake symbol doesn't include () */),
374 has("GlobalClass"), has("IndexClass")));
376 EXPECT_THAT(Results.Completions, has("MACRO"));
379 AllOf(has("local_var"), has("LocalClass"),
414 AllOf(has("priv"), has("prot"), has("pub")));
428 AllOf(has("pub"), Not(has("prot")), Not(has("priv"))));
445 AllOf(Not(has("priv")), Not(has("prot")), Not(has("pub"))));
484 Not(has("X")));
486 Not(has("X")));
489 has("X"));
492 has("Y"));
497 has("Y"));
500 has("X"));
678 AllOf(has("function", CompletionItemKind::Function),
679 has("variable", CompletionItemKind::Variable),
680 has("int", CompletionItemKind::Keyword),
681 has("Struct", CompletionItemKind::Struct),
682 has("MACRO", CompletionItemKind::Constant),
683 has("indexFunction", CompletionItemKind::Function),
684 has("indexVariable", CompletionItemKind::Variable),
685 has("indexClass", CompletionItemKind::Class),
686 has("indexObjMacro", CompletionItemKind::Constant),
687 has("indexFuncMacro", CompletionItemKind::Function)));
691 has("namespace", CompletionItemKind::Snippet));
823 AllOf(has("XYZ", CompletionItemKind::Class),
824 has("f", CompletionItemKind::Function)));
835 AllOf(has("XYZ", CompletionItemKind::Class),
836 has("bar", CompletionItemKind::Function)));
1075 EXPECT_THAT(Results.Completions, has("XYZ", CompletionItemKind::Class));
1076 EXPECT_THAT(Results.Completions, has("foo", CompletionItemKind::Function));
1077 EXPECT_THAT(Results.Completions, has("XXX", CompletionItemKind::Class));
1195 /// This one has a comment.
1214 Contains(AllOf(named("epsilon"), doc("This one has a comment."))));
1398 // Formally ppp has DependentTy, because Templ may be specialized.
3277 AllOf(has("sub/", CompletionItemKind::Folder),
3278 has("bar.h\"", CompletionItemKind::File)));
3712 for (auto [loopVar] : y ) { // y has to be unresolved.
4167 // Comment already has some text in it.