1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

Update src/Language/TypeScript/Assignment.hs

Co-Authored-By: Rob Rix <robrix@github.com>
This commit is contained in:
Patrick Thomson 2019-09-18 09:39:13 -04:00 committed by GitHub
parent 058462adf5
commit c237f26b58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -456,7 +456,7 @@ callSignatureParts = contextualize' <$> Assignment.manyThrough comment (postCont
Nothing -> (typeParams, formalParams, annotation)
callSignature :: Assignment Term
callSignature = makeTerm <$> location <*> children (TypeScript.Syntax.CallSignature <$> (fromMaybe <$> emptyTerm <*> optional (term typeParameters)) <*> formalParameters <*> (fromMaybe <$> emptyTerm <*> optional (term typeAnnotation')))
callSignature = makeTerm <$> location <*> (TypeScript.Syntax.CallSignature <$> (fromMaybe <$> emptyTerm <*> optional (term typeParameters)) <*> formalParameters <*> (fromMaybe <$> emptyTerm <*> optional (term typeAnnotation')))
constructSignature :: Assignment Term
constructSignature = makeTerm <$> symbol Grammar.ConstructSignature <*> children (TypeScript.Syntax.ConstructSignature <$> (fromMaybe <$> emptyTerm <*> optional (term typeParameters)) <*> formalParameters <*> (fromMaybe <$> emptyTerm <*> optional (term typeAnnotation')))