Files
clice/include/Feature/SemanticToken.h
2025-03-30 15:38:14 +08:00

31 lines
622 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;
};
using SemanticTokens = std::vector<SemanticToken>;
/// Generate semantic tokens for the interested file only.
SemanticTokens semanticTokens(ASTInfo& AST);
/// Generate semantic tokens for all files.
index::Shared<SemanticTokens> indexSemanticToken(ASTInfo& AST);
} // namespace clice::feature