Cobol_lsp.Semtoksval data :
filename:string ->
range:Lsp.Types.Range.t option ->
tokens:Cobol_parser.Outputs.tokens_with_locs ->
pplog:Cobol_preproc.Trace.log ->
rev_comments:Cobol_preproc.Text.comments ->
rev_ignored:Cobol_common.Srcloc.lexloc list ->
ptree:Cobol_ptree.compilation_group ->
int arrayval whole :
filename:string ->
Cobol_parser.Outputs.artifacts ->
Cobol_typeck.Outputs.t ->
Superbol_project.Semantic_tokens.twhole ~filename artifacts checked computes all the semantic tokens of the document filename (and none of its copybooks), from its parsing artifacts and typechecking outputs. Forces the tokens of artifacts.
restrict ~range data keeps the semantic tokens of data that intersect range. This yields the same as computing semantic tokens for range directly, except for regions that span several lines (ignored by the preprocessor): these are kept only when their first line intersects range, which is the only line they are highlighted on anyway.