1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00
semantic/test/fixtures/java/corpus
Patrick Thomson c623d2906b Assignment error in Java try/catch blocks (#235)
As @tclem pointed out, the TryStatement token was being consumed too
early. We also ran into errors within the `catches` clause where we
required a block but were asking for an expression.
2019-09-06 12:23:55 -04:00
..
array-access.java array access test 2018-06-06 11:31:22 -07:00
ArrayAccess.A.java test array access 2018-07-23 18:36:46 -04:00
ArrayAccess.B.java test array access 2018-07-23 18:36:46 -04:00
ArrayAccess.diffA-B.txt test array access 2018-07-23 18:36:46 -04:00
ArrayAccess.diffB-A.txt test array access 2018-07-23 18:36:46 -04:00
ArrayAccess.parseA.txt test array access 2018-07-23 18:36:46 -04:00
ArrayAccess.parseB.txt test array access 2018-07-23 18:36:46 -04:00
AssertStatement.A.java test AssertStatement 2018-07-23 18:36:37 -04:00
AssertStatement.B.java test AssertStatement 2018-07-23 18:36:37 -04:00
AssertStatement.diffA-B.txt test AssertStatement 2018-07-23 18:36:37 -04:00
AssertStatement.diffB-A.txt test AssertStatement 2018-07-23 18:36:37 -04:00
assertStatement.java assertStatement fixture 2018-07-18 15:39:17 -04:00
AssertStatement.parseA.txt test AssertStatement 2018-07-23 18:36:37 -04:00
AssertStatement.parseB.txt test AssertStatement 2018-07-23 18:36:37 -04:00
assertStringLiteral.java add tests for normalInterfaceDeclaration and assertStatements in stringLiteral 2018-07-23 09:26:02 -04:00
Binary.A.java test binary expressions 2018-07-23 18:36:27 -04:00
Binary.B.java test binary expressions 2018-07-23 18:36:27 -04:00
Binary.diffA-B.txt test binary expressions 2018-07-23 18:36:27 -04:00
Binary.diffB-A.txt test binary expressions 2018-07-23 18:36:27 -04:00
Binary.parseA.txt test binary expressions 2018-07-23 18:36:27 -04:00
Binary.parseB.txt test binary expressions 2018-07-23 18:36:27 -04:00
Boolean.A.java test boolean 2018-07-23 18:36:10 -04:00
Boolean.B.java test boolean 2018-07-23 18:36:10 -04:00
Boolean.diffA-B.txt test boolean 2018-07-23 18:36:10 -04:00
Boolean.diffB-A.txt test boolean 2018-07-23 18:36:10 -04:00
Boolean.parseA.txt test boolean 2018-07-23 18:36:10 -04:00
Boolean.parseB.txt test boolean 2018-07-23 18:36:10 -04:00
Char.A.java test char 2018-07-23 18:35:52 -04:00
Char.B.java test char 2018-07-23 18:35:52 -04:00
Char.diffA-B.txt test char 2018-07-23 18:35:52 -04:00
Char.diffB-A.txt test char 2018-07-23 18:35:52 -04:00
Char.parseA.txt test char 2018-07-23 18:35:52 -04:00
Char.parseB.txt test char 2018-07-23 18:35:52 -04:00
ClassBody.A.java classBody 2018-07-23 18:35:42 -04:00
ClassBody.B.java classBody 2018-07-23 18:35:42 -04:00
ClassBody.diffA-B.txt classBody 2018-07-23 18:35:42 -04:00
ClassBody.diffB-A.txt classBody 2018-07-23 18:35:42 -04:00
ClassBody.parseA.txt classBody 2018-07-23 18:35:42 -04:00
ClassBody.parseB.txt classBody 2018-07-23 18:35:42 -04:00
ClassLiteral.A.java test class literal 2018-07-24 18:31:09 -04:00
ClassLiteral.B.java test class literal 2018-07-24 18:31:09 -04:00
ClassLiteral.diffA-B.txt test class literal 2018-07-24 18:31:09 -04:00
ClassLiteral.diffB-A.txt test class literal 2018-07-24 18:31:09 -04:00
ClassLiteral.parseA.txt test class literal 2018-07-24 18:31:09 -04:00
ClassLiteral.parseB.txt test class literal 2018-07-24 18:31:09 -04:00
Comment.A.java add comment tests 2018-07-23 18:32:13 -04:00
Comment.B.java add comment tests 2018-07-23 18:32:13 -04:00
Comment.diffA-B.txt add comment tests 2018-07-23 18:32:13 -04:00
Comment.diffB-A.txt add comment tests 2018-07-23 18:32:13 -04:00
Comment.parseA.txt add comment tests 2018-07-23 18:32:13 -04:00
Comment.parseB.txt add comment tests 2018-07-23 18:32:13 -04:00
Continue0.A.java interface declaration tests 2018-07-24 17:06:07 -04:00
Continue1.A.java interface declaration tests 2018-07-24 17:06:07 -04:00
Continue.A.java test continue statement 2018-07-24 11:57:51 -04:00
Continue.B.java test continue statement 2018-07-24 11:57:51 -04:00
Continue.diffA-B.txt test continue statement 2018-07-24 11:57:51 -04:00
Continue.diffB-A.txt test continue statement 2018-07-24 11:57:51 -04:00
Continue.parseA.txt test continue statement 2018-07-24 11:57:51 -04:00
Continue.parseB.txt test continue statement 2018-07-24 11:57:51 -04:00
Dims.A.java test dims 2018-07-24 12:04:09 -04:00
Dims.B.java test dims 2018-07-24 12:04:09 -04:00
Dims.diffA-B.txt test dims 2018-07-24 12:04:09 -04:00
Dims.diffB-A.txt test dims 2018-07-24 12:04:09 -04:00
Dims.parseA.txt test dims 2018-07-24 12:04:09 -04:00
Dims.parseB.txt test dims 2018-07-24 12:04:09 -04:00
DoWhile.A.java test DoWhile 2018-07-24 12:42:44 -04:00
DoWhile.B.java test DoWhile 2018-07-24 12:42:44 -04:00
DoWhile.diffA-B.txt test DoWhile 2018-07-24 12:42:44 -04:00
DoWhile.diffB-A.txt test DoWhile 2018-07-24 12:42:44 -04:00
DoWhile.parseA.txt test DoWhile 2018-07-24 12:42:44 -04:00
DoWhile.parseB.txt test DoWhile 2018-07-24 12:42:44 -04:00
enum.java text fixtures 2018-06-01 14:09:56 -07:00
EnumDeclaration.A.java test EnumDeclaration 2018-07-24 12:43:13 -04:00
EnumDeclaration.B.java test EnumDeclaration 2018-07-24 12:43:13 -04:00
EnumDeclaration.diffA-B.txt test EnumDeclaration 2018-07-24 12:43:13 -04:00
EnumDeclaration.diffB-A.txt test EnumDeclaration 2018-07-24 12:43:13 -04:00
EnumDeclaration.parseA.txt test EnumDeclaration 2018-07-24 12:43:13 -04:00
EnumDeclaration.parseB.txt test EnumDeclaration 2018-07-24 12:43:13 -04:00
FieldAccess.A.java test field access 2018-07-24 12:53:35 -04:00
FieldAccess.B.java test field access 2018-07-24 12:53:35 -04:00
FieldAccess.diffA-B.txt test field access 2018-07-24 12:53:35 -04:00
FieldAccess.diffB-A.txt test field access 2018-07-24 12:53:35 -04:00
FieldAccess.parseA.txt test field access 2018-07-24 12:53:35 -04:00
FieldAccess.parseB.txt test field access 2018-07-24 12:53:35 -04:00
Float.A.java test float 2018-07-24 15:29:54 -04:00
Float.B.java test float 2018-07-24 15:29:54 -04:00
Float.diffA-B.txt test float 2018-07-24 15:29:54 -04:00
Float.diffB-A.txt test float 2018-07-24 15:29:54 -04:00
Float.parseA.txt test float 2018-07-24 15:29:54 -04:00
Float.parseB.txt test float 2018-07-24 15:29:54 -04:00
For.A.java test For loop 2018-07-24 16:51:48 -04:00
For.B.java test For loop 2018-07-24 16:51:48 -04:00
For.diffA-B.txt test For loop 2018-07-24 16:51:48 -04:00
For.diffB-A.txt test For loop 2018-07-24 16:51:48 -04:00
For.parseA.txt test For loop 2018-07-24 16:51:48 -04:00
For.parseB.txt test For loop 2018-07-24 16:51:48 -04:00
If.A.java test if statements 2018-07-24 16:53:08 -04:00
If.B.java test if statements 2018-07-24 16:53:08 -04:00
If.diffA-B.txt test if statements 2018-07-24 16:53:08 -04:00
If.diffB-A.txt test if statements 2018-07-24 16:53:08 -04:00
If.parseA.txt test if statements 2018-07-24 16:53:08 -04:00
If.parseB.txt test if statements 2018-07-24 16:53:08 -04:00
Import.A.java Import statement 2018-07-24 16:56:38 -04:00
Import.B.java Import statement 2018-07-24 16:56:38 -04:00
Import.diffA-B.txt Import statement 2018-07-24 16:56:38 -04:00
Import.diffB-A.txt Import statement 2018-07-24 16:56:38 -04:00
Import.parseA.txt Import statement 2018-07-24 16:56:38 -04:00
Import.parseB.txt Import statement 2018-07-24 16:56:38 -04:00
Int.A.java test integers 2018-07-24 17:01:12 -04:00
Int.B.java test integers 2018-07-24 17:01:12 -04:00
Int.diffA-B.txt test integers 2018-07-24 17:01:12 -04:00
Int.diffB-A.txt test integers 2018-07-24 17:01:12 -04:00
Int.parseA.txt test integers 2018-07-24 17:01:12 -04:00
Int.parseB.txt test integers 2018-07-24 17:01:12 -04:00
Interface.A.java interface declaration tests 2018-07-24 17:06:07 -04:00
Interface.B.java interface declaration tests 2018-07-24 17:06:07 -04:00
Interface.diffA-B.txt interface declaration tests 2018-07-24 17:06:07 -04:00
Interface.diffB-A.txt interface declaration tests 2018-07-24 17:06:07 -04:00
Interface.parseA.txt interface declaration tests 2018-07-24 17:06:07 -04:00
Interface.parseB.txt interface declaration tests 2018-07-24 17:06:07 -04:00
Lambda.A.java llama expression 2018-07-24 17:31:50 -04:00
Lambda.B.java llama expression 2018-07-24 17:31:50 -04:00
Lambda.diffA-B.txt llama expression 2018-07-24 17:31:50 -04:00
Lambda.diffB-A.txt llama expression 2018-07-24 17:31:50 -04:00
Lambda.parseA.txt llama expression 2018-07-24 17:31:50 -04:00
Lambda.parseB.txt llama expression 2018-07-24 17:31:50 -04:00
methodReference.java methodReference test 2018-06-27 17:18:36 -04:00
modifier-abstract.java text fixtures 2018-06-01 14:09:56 -07:00
modifier-private.java text fixtures 2018-06-01 14:09:56 -07:00
modifier-protected.java text fixtures 2018-06-01 14:09:56 -07:00
modifier-public.java text fixtures 2018-06-01 14:09:56 -07:00
modifier-static.java text fixtures 2018-06-01 14:09:56 -07:00
null.java text fixtures 2018-06-01 14:09:56 -07:00
package.java text fixtures 2018-06-01 14:09:56 -07:00
return.java text fixtures 2018-06-01 14:09:56 -07:00
ScopedIdentifier.A.java test scoped identifiers 2018-07-24 17:45:09 -04:00
ScopedIdentifier.B.java test scoped identifiers 2018-07-24 17:45:09 -04:00
ScopedIdentifier.diffA-B.txt test scoped identifiers 2018-07-24 17:45:09 -04:00
ScopedIdentifier.diffB-A.txt test scoped identifiers 2018-07-24 17:45:09 -04:00
ScopedIdentifier.parseA.txt test scoped identifiers 2018-07-24 17:45:09 -04:00
ScopedIdentifier.parseB.txt test scoped identifiers 2018-07-24 17:45:09 -04:00
SpreadParameter.A.java test spread parameter 2018-07-24 17:47:52 -04:00
SpreadParameter.B.java test spread parameter 2018-07-24 17:47:52 -04:00
SpreadParameter.diffA-B.txt test spread parameter 2018-07-24 17:47:52 -04:00
SpreadParameter.diffB-A.txt test spread parameter 2018-07-24 17:47:52 -04:00
SpreadParameter.parseA.txt test spread parameter 2018-07-24 17:47:52 -04:00
SpreadParameter.parseB.txt test spread parameter 2018-07-24 17:47:52 -04:00
String.A.java test strings 2018-07-24 17:51:32 -04:00
String.B.java test strings 2018-07-24 17:51:32 -04:00
String.diffA-B.txt test strings 2018-07-24 17:51:32 -04:00
String.diffB-A.txt test strings 2018-07-24 17:51:32 -04:00
String.parseA.txt test strings 2018-07-24 17:51:32 -04:00
String.parseB.txt test strings 2018-07-24 17:51:32 -04:00
Switch.A.java test switch statement 2018-07-24 17:54:43 -04:00
Switch.B.java test switch statement 2018-07-24 17:54:43 -04:00
Switch.diffA-B.txt test switch statement 2018-07-24 17:54:43 -04:00
Switch.diffB-A.txt test switch statement 2018-07-24 17:54:43 -04:00
Switch.parseA.txt test switch statement 2018-07-24 17:54:43 -04:00
Switch.parseB.txt test switch statement 2018-07-24 17:54:43 -04:00
Throws.A.java test throws, trycatches and type argument 2018-07-24 18:17:42 -04:00
Throws.B.java test throws, trycatches and type argument 2018-07-24 18:17:42 -04:00
try_with_resources.java Assignment error in Java try/catch blocks (#235) 2019-09-06 12:23:55 -04:00
try.java Assignment error in Java try/catch blocks (#235) 2019-09-06 12:23:55 -04:00
TryCatches.A.java test throws, trycatches and type argument 2018-07-24 18:17:42 -04:00
TryCatches.B.java test throws, trycatches and type argument 2018-07-24 18:17:42 -04:00
TryWithResourcesStatement.A.java test try with resources statement 2018-07-24 18:12:47 -04:00
TryWithResourcesStatement.B.java test try with resources statement 2018-07-24 18:12:47 -04:00
TryWithResourcesStatement.diffA-B.txt test try with resources statement 2018-07-24 18:12:47 -04:00
TryWithResourcesStatement.diffB-A.txt test try with resources statement 2018-07-24 18:12:47 -04:00
TryWithResourcesStatement.parseA.txt test try with resources statement 2018-07-24 18:12:47 -04:00
TryWithResourcesStatement.parseB.txt test try with resources statement 2018-07-24 18:12:47 -04:00
TypeArgument.A.java test throws, trycatches and type argument 2018-07-24 18:17:42 -04:00
TypeArgument.B.java test throws, trycatches and type argument 2018-07-24 18:17:42 -04:00
TypeArgument.diffA-B.txt test throws, trycatches and type argument 2018-07-24 18:17:42 -04:00
TypeArgument.diffB-A.txt test throws, trycatches and type argument 2018-07-24 18:17:42 -04:00
TypeArgument.parseA.txt test throws, trycatches and type argument 2018-07-24 18:17:42 -04:00
TypeArgument.parseB.txt test throws, trycatches and type argument 2018-07-24 18:17:42 -04:00
Update.A.java test update expression 2018-07-24 18:18:59 -04:00
Update.B.java test update expression 2018-07-24 18:18:59 -04:00
Update.diffA-B.txt test update expression 2018-07-24 18:18:59 -04:00
Update.diffB-A.txt test update expression 2018-07-24 18:18:59 -04:00
Update.parseA.txt test update expression 2018-07-24 18:18:59 -04:00
Update.parseB.txt test update expression 2018-07-24 18:18:59 -04:00
VariableDeclaration.A.java test variable declaration 2018-07-24 18:20:57 -04:00
VariableDeclaration.B.java test variable declaration 2018-07-24 18:20:57 -04:00
VariableDeclaration.diffA-B.txt test variable declaration 2018-07-24 18:20:57 -04:00
VariableDeclaration.diffB-A.txt test variable declaration 2018-07-24 18:20:57 -04:00
VariableDeclaration.parseA.txt test variable declaration 2018-07-24 18:20:57 -04:00
VariableDeclaration.parseB.txt test variable declaration 2018-07-24 18:20:57 -04:00
While.A.java test while 2018-07-24 18:23:08 -04:00
While.B.java test while 2018-07-24 18:23:08 -04:00
While.diffA-B.txt test while 2018-07-24 18:23:08 -04:00
While.diffB-A.txt test while 2018-07-24 18:23:08 -04:00
While.parseA.txt test while 2018-07-24 18:23:08 -04:00
While.parseB.txt test while 2018-07-24 18:23:08 -04:00
Wildcard.A.java add wildcard 2018-07-24 18:24:50 -04:00
Wildcard.B.java add wildcard 2018-07-24 18:24:50 -04:00
Wildcard.diffA-B.txt add wildcard 2018-07-24 18:24:50 -04:00
Wildcard.diffB-A.txt add wildcard 2018-07-24 18:24:50 -04:00
Wildcard.parseA.txt add wildcard 2018-07-24 18:24:50 -04:00
Wildcard.parseB.txt add wildcard 2018-07-24 18:24:50 -04:00