Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

TokenizationScheme

mattt edited this page Dec 21, 2020 · 1 revision

TokenizationScheme

A type that provides tokens for a highlighter syntax.

public protocol TokenizationScheme

Requirements

tokens(for:​)

Returns the highlighted tokens for a SwiftSyntax node.

static func tokens(for syntax: Syntax) -> [Token]

Parameters

  • syntax: The syntax node to be highlighted.

Returns

An array of highlighted tokens.

Clone this wiki locally