Files
clice/include/Feature/SemanticTokens.h
2025-03-20 22:34:35 +08:00

29 lines
595 B
C++

#pragma once
#include "AST/SymbolKind.h"
#include "AST/SourceCode.h"
#include "Index/Shared.h"
namespace clice::config {
struct SemanticTokensOption {};
}; // namespace clice::config
namespace clice::feature {
struct SemanticToken {
LocalSourceRange range;
SymbolKind kind;
SymbolModifiers modifiers;
};
/// Generate semantic tokens for the interested file only.
std::vector<SemanticToken> semanticTokens(ASTInfo& AST);
/// Generate semantic tokens for all files.
index::Shared<std::vector<SemanticToken>> indexSemanticTokens(ASTInfo& AST);
} // namespace clice::feature