1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

bring this Go assignment back

This commit is contained in:
joshvera 2019-06-06 18:57:35 -04:00
parent 237c4d6b3f
commit 72b04d7c9c
2 changed files with 2 additions and 5 deletions

View File

@ -262,7 +262,7 @@ floatLiteral :: Assignment Term
floatLiteral = makeTerm <$> symbol FloatLiteral <*> (Literal.Float <$> source)
identifier :: Assignment Term
identifier = makeTerm <$> symbol Identifier <*> (Syntax.Identifier . name <$> source)
identifier = makeTerm <$> (symbol Identifier <|> symbol Identifier' <|> symbol Identifier'') <*> (Syntax.Identifier . name <$> source)
imaginaryLiteral :: Assignment Term
imaginaryLiteral = makeTerm <$> symbol ImaginaryLiteral <*> (Literal.Complex <$> source)

View File

@ -4,14 +4,11 @@ module Language.TSX.Syntax.JSX where
import Prologue
import Control.Abstract as Abstract
import Data.Abstract.Evaluatable
import Data.Abstract.ScopeGraph (AccessControl(..))
import Data.JSON.Fields
import qualified Data.Text as T
import Diffing.Algorithm
import qualified Data.Map.Strict as Map
import qualified Data.Abstract.ScopeGraph as ScopeGraph
data JsxElement a = JsxElement { jsxOpeningElement :: !a, jsxElements :: ![a], jsxClosingElement :: !a }
deriving (Declarations1, Diffable, Eq, Foldable, FreeVariables1, Functor, Generic1, Hashable1, NFData1, Ord, Show, ToJSONFields1, Traversable)