Searched refs:PreferredDeclaration (Results 1 – 5 of 5) sorted by relevance
236 File.PreferredDeclaration = { in locateFileReferent()238 File.Definition = File.PreferredDeclaration; in locateFileReferent()256 Macro.PreferredDeclaration = *Loc; in locateMacroReferent()318 Result.back().PreferredDeclaration = *Loc; in locateASTReferent()402 R.PreferredDeclaration = *Loc; in locateASTReferent()415 getPreferredLocation(R.PreferredDeclaration, in locateASTReferent()418 R.PreferredDeclaration = *Loc; in locateASTReferent()505 Located.PreferredDeclaration = *MaybeDeclLoc; in locateSymbolTextually()513 Located.PreferredDeclaration = *MaybeDefLoc; in locateSymbolTextually()1169 Loc.PreferredDeclaration = *DeclLoc; in findImplementations()[all …]
47 Location PreferredDeclaration; member
1119 if (!Sym.Definition || *Sym.Definition == Sym.PreferredDeclaration) in getToggle()1123 return &Sym.PreferredDeclaration; in getToggle()1124 if (Sym.PreferredDeclaration.uri.file() == Point.textDocument.uri.file() && in getToggle()1125 Sym.PreferredDeclaration.range.contains(Point.position)) in getToggle()1142 Defs.push_back(S.Definition.getValueOr(S.PreferredDeclaration)); in onGoToDefinition()1161 Decls.push_back(std::move(S.PreferredDeclaration)); in onGoToDeclaration()1327 Impls.push_back(Sym.PreferredDeclaration); in onGoToImplementation()
54 return Sym.PreferredDeclaration.range == Range;269 if (Decl != arg.PreferredDeclaration.range) {271 << llvm::to_string(arg.PreferredDeclaration);765 EXPECT_EQ(Results[0].PreferredDeclaration.range, *WantDecl) << Test; in TEST()848 EXPECT_EQ(Results[Idx].PreferredDeclaration.range, Ranges[Idx].WantDecl) in TEST()900 EXPECT_EQ(Results[0].PreferredDeclaration.range, *WantDecl) << Test; in TEST()975 EXPECT_EQ(Results[0].PreferredDeclaration.range, *WantDecl) << Test; in TEST()
64 return arg.PreferredDeclaration ==361 EXPECT_EQ(Result->front().PreferredDeclaration.range, Example.range()); in TEST()367 EXPECT_NE(Result->front().PreferredDeclaration.range, Example.range()); in TEST()