• Home
  • Raw
  • Download

Lines Matching refs:HighlightingKind

48 llvm::Optional<HighlightingKind> kindForType(const Type *TP);
49 llvm::Optional<HighlightingKind> kindForDecl(const NamedDecl *D) { in kindForDecl()
63 return HighlightingKind::Typedef; in kindForDecl()
72 return HighlightingKind::Class; in kindForDecl()
76 return HighlightingKind::Class; in kindForDecl()
78 return MD->isStatic() ? HighlightingKind::StaticMethod in kindForDecl()
79 : HighlightingKind::Method; in kindForDecl()
81 return HighlightingKind::Field; in kindForDecl()
83 return HighlightingKind::Enum; in kindForDecl()
85 return HighlightingKind::EnumConstant; in kindForDecl()
87 return HighlightingKind::Parameter; in kindForDecl()
90 ? HighlightingKind::StaticField in kindForDecl()
91 : VD->isLocalVarDecl() ? HighlightingKind::LocalVariable in kindForDecl()
92 : HighlightingKind::Variable; in kindForDecl()
95 ? HighlightingKind::LocalVariable in kindForDecl()
96 : HighlightingKind::Variable; in kindForDecl()
98 return HighlightingKind::Function; in kindForDecl()
101 return HighlightingKind::Namespace; in kindForDecl()
104 return HighlightingKind::TemplateParameter; in kindForDecl()
106 return HighlightingKind::Concept; in kindForDecl()
109 llvm::Optional<HighlightingKind> kindForType(const Type *TP) { in kindForType()
113 return HighlightingKind::Primitive; in kindForType()
121 llvm::Optional<HighlightingKind> kindForReference(const ReferenceLoc &R) { in kindForReference()
122 llvm::Optional<HighlightingKind> Result; in kindForReference()
148 unsigned evaluateHighlightPriority(HighlightingKind Kind) { in evaluateHighlightPriority()
150 return Kind == HighlightingKind::DependentType || in evaluateHighlightPriority()
151 Kind == HighlightingKind::DependentName in evaluateHighlightPriority()
187 void addToken(SourceLocation Loc, HighlightingKind Kind) { in addToken()
252 {HighlightingKind::InactiveCode, in collect()
307 H.addToken(E->getNameLoc(), HighlightingKind::DependentName); in VisitOverloadExpr()
313 HighlightingKind::DependentName); in VisitCXXDependentScopeMemberExpr()
318 H.addToken(E->getNameInfo().getLoc(), HighlightingKind::DependentName); in VisitDependentScopeDeclRefExpr()
323 H.addToken(L.getNameLoc(), HighlightingKind::DependentType); in VisitDependentNameTypeLoc()
329 H.addToken(L.getTemplateNameLoc(), HighlightingKind::DependentType); in VisitDependentTemplateSpecializationTypeLoc()
337 H.addToken(L.getTemplateNameLoc(), HighlightingKind::DependentType); in TraverseTemplateArgumentLoc()
353 H.addToken(Q.getLocalBeginLoc(), HighlightingKind::DependentType); in TraverseNestedNameSpecifierLoc()
400 Builder.addToken({HighlightingKind::Macro, M}); in getSemanticHighlightings()
403 Builder.addToken({HighlightingKind::Macro, M}); in getSemanticHighlightings()
408 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, HighlightingKind K) { in operator <<()
410 case HighlightingKind::Variable: in operator <<()
412 case HighlightingKind::LocalVariable: in operator <<()
414 case HighlightingKind::Parameter: in operator <<()
416 case HighlightingKind::Function: in operator <<()
418 case HighlightingKind::Method: in operator <<()
420 case HighlightingKind::StaticMethod: in operator <<()
422 case HighlightingKind::Field: in operator <<()
424 case HighlightingKind::StaticField: in operator <<()
426 case HighlightingKind::Class: in operator <<()
428 case HighlightingKind::Enum: in operator <<()
430 case HighlightingKind::EnumConstant: in operator <<()
432 case HighlightingKind::Typedef: in operator <<()
434 case HighlightingKind::DependentType: in operator <<()
436 case HighlightingKind::DependentName: in operator <<()
438 case HighlightingKind::Namespace: in operator <<()
440 case HighlightingKind::TemplateParameter: in operator <<()
442 case HighlightingKind::Concept: in operator <<()
444 case HighlightingKind::Primitive: in operator <<()
446 case HighlightingKind::Macro: in operator <<()
448 case HighlightingKind::InactiveCode: in operator <<()
500 if (T.Kind == HighlightingKind::InactiveCode) { in diffHighlightings()
552 llvm::StringRef toSemanticTokenType(HighlightingKind Kind) { in toSemanticTokenType()
554 case HighlightingKind::Variable: in toSemanticTokenType()
555 case HighlightingKind::LocalVariable: in toSemanticTokenType()
556 case HighlightingKind::StaticField: in toSemanticTokenType()
558 case HighlightingKind::Parameter: in toSemanticTokenType()
560 case HighlightingKind::Function: in toSemanticTokenType()
562 case HighlightingKind::Method: in toSemanticTokenType()
564 case HighlightingKind::StaticMethod: in toSemanticTokenType()
567 case HighlightingKind::Field: in toSemanticTokenType()
569 case HighlightingKind::Class: in toSemanticTokenType()
571 case HighlightingKind::Enum: in toSemanticTokenType()
573 case HighlightingKind::EnumConstant: in toSemanticTokenType()
575 case HighlightingKind::Typedef: in toSemanticTokenType()
577 case HighlightingKind::DependentType: in toSemanticTokenType()
579 case HighlightingKind::DependentName: in toSemanticTokenType()
581 case HighlightingKind::Namespace: in toSemanticTokenType()
583 case HighlightingKind::TemplateParameter: in toSemanticTokenType()
585 case HighlightingKind::Concept: in toSemanticTokenType()
587 case HighlightingKind::Primitive: in toSemanticTokenType()
589 case HighlightingKind::Macro: in toSemanticTokenType()
591 case HighlightingKind::InactiveCode: in toSemanticTokenType()
627 llvm::StringRef toTextMateScope(HighlightingKind Kind) { in toTextMateScope()
630 case HighlightingKind::Function: in toTextMateScope()
632 case HighlightingKind::Method: in toTextMateScope()
634 case HighlightingKind::StaticMethod: in toTextMateScope()
636 case HighlightingKind::Variable: in toTextMateScope()
638 case HighlightingKind::LocalVariable: in toTextMateScope()
640 case HighlightingKind::Parameter: in toTextMateScope()
642 case HighlightingKind::Field: in toTextMateScope()
644 case HighlightingKind::StaticField: in toTextMateScope()
646 case HighlightingKind::Class: in toTextMateScope()
648 case HighlightingKind::Enum: in toTextMateScope()
650 case HighlightingKind::EnumConstant: in toTextMateScope()
652 case HighlightingKind::Typedef: in toTextMateScope()
654 case HighlightingKind::DependentType: in toTextMateScope()
656 case HighlightingKind::DependentName: in toTextMateScope()
658 case HighlightingKind::Namespace: in toTextMateScope()
660 case HighlightingKind::TemplateParameter: in toTextMateScope()
662 case HighlightingKind::Concept: in toTextMateScope()
664 case HighlightingKind::Primitive: in toTextMateScope()
666 case HighlightingKind::Macro: in toTextMateScope()
668 case HighlightingKind::InactiveCode: in toTextMateScope()