mirror of
https://github.com/github/semantic.git
synced 2024-12-26 08:25:19 +03:00
🔥 partial field selectors for Token.
This commit is contained in:
parent
8d6eecc77b
commit
9770cbdc9b
@ -47,9 +47,9 @@ import qualified Language.TypeScript.Syntax as TypeScript
|
||||
|
||||
-- TODO: Move to src/Data
|
||||
data Token
|
||||
= Enter { tokenName :: Text, tokenSnippetRange :: Range }
|
||||
| Exit { tokenName :: Text, tokenSnippetRange :: Range}
|
||||
| Iden { identifierName :: Text, tokenLoc :: Loc, docsLiteralRange :: Maybe Range }
|
||||
= Enter Text Range
|
||||
| Exit Text Range
|
||||
| Iden Text Loc (Maybe Range)
|
||||
deriving (Eq, Show)
|
||||
|
||||
type Tagger = Stream (Of Token)
|
||||
|
Loading…
Reference in New Issue
Block a user