1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

fix hlint errors and add java to integration spec

This commit is contained in:
Ayman Nadeem 2018-07-23 13:49:10 -04:00
parent 3ba39b9bc7
commit 913ba4c315
2 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@ variableDeclaratorList = symbol VariableDeclaratorList *> children (makeDecl <$>
arrayCreationExpression :: Assignment Term
arrayCreationExpression = makeTerm <$> symbol Grammar.ArrayCreationExpression <*> children (Java.Syntax.ArrayCreationExpression <$> (new *> type') <*> many dimsExpr)
where new = token AnonNew *> pure Java.Syntax.NewKeyword
where new = token AnonNew $> pure Java.Syntax.NewKeyword
localVariableDeclarationStatement :: Assignment Term
localVariableDeclarationStatement = symbol LocalVariableDeclarationStatement *> children localVariableDeclaration
@ -285,7 +285,7 @@ char = makeTerm <$> symbol CharacterLiteral <*> (Literal.TextElement <$> source)
-- Identifiers
identifier :: Assignment Term
identifier = makeTerm <$> (symbol Identifier) <*> (Syntax.Identifier . name <$> source)
identifier = makeTerm <$> symbol Identifier <*> (Syntax.Identifier . name <$> source)
typeIdentifier :: Assignment Term
typeIdentifier = makeTerm <$> symbol TypeIdentifier <*> (Syntax.Identifier . name <$> source)

View File

@ -9,7 +9,7 @@ import System.FilePath.Posix
import SpecHelpers
languages :: [FilePath]
languages = ["go", "javascript", "json", "python", "ruby", "typescript"]
languages = ["go", "javascript", "json", "python", "ruby", "typescript", "java"]
spec :: TaskConfig -> Spec
spec config = parallel $ do