Commit Graph

291 Commits

Author SHA1 Message Date
Dave Holoway
fbb275600a check castability using type assignments 2020-06-22 14:41:32 +01:00
Dave Holoway
4fc616daa1 ensure tokens are assigned for qualified expressions 2020-06-22 13:03:28 +01:00
Dave Holoway
df210b4659 add checks for unary operators 2020-06-22 11:09:50 +01:00
Dave Holoway
491086a750 remove return type for source constructors 2020-06-21 21:36:56 +01:00
Dave Holoway
43c701adc8 add support for this() and super() constructor calls 2020-06-21 21:29:03 +01:00
Dave Holoway
153a6e869b improve method call resolving 2020-06-21 18:52:41 +01:00
Dave Holoway
6badc9fdb6 implement method body and ststement validation 2020-06-21 13:47:56 +01:00
Dave Holoway
a034a90735 support package name as a resolved value 2020-06-19 11:08:02 +01:00
Dave Holoway
82e660eabc improve checking of number literals 2020-06-18 18:39:41 +01:00
Dave Holoway
9be298293f rename ResolvedType to ResolvedValue 2020-06-18 17:22:17 +01:00
Dave Holoway
7fd7809be3 improve validation of binary operators 2020-06-18 17:12:18 +01:00
Dave Holoway
f4743e456b validate array indexes 2020-06-18 15:57:30 +01:00
Dave Holoway
1255a15bba validate array literals 2020-06-18 15:45:34 +01:00
Dave Holoway
f05b34171c add new array validation 2020-06-18 14:54:12 +01:00
Dave Holoway
d869afe2fa improve reporting of unresolved identifiers 2020-06-18 13:16:39 +01:00
Dave Holoway
c1f2ccdc4a allow assigns for assignable type arguments 2020-06-18 12:45:04 +01:00
Dave Holoway
b143772b26 check for valid type in class member expressions 2020-06-18 12:35:21 +01:00
Dave Holoway
0f296379c6 add type cast checking 2020-06-18 12:24:16 +01:00
Dave Holoway
2da127edc0 implement resolveExpression 2020-06-18 11:46:42 +01:00
Dave Holoway
13cdd1e0bc support token extraction in expressions 2020-06-17 15:37:30 +01:00
Dave Holoway
3c505b05be remove some parse checks that should be in verify 2020-06-17 13:50:14 +01:00
Dave Holoway
458d8e553e rename source types module 2020-06-17 13:09:50 +01:00
Dave Holoway
4f62b5a06e remove Value class, add NewExpression and separate out Any classes 2020-06-17 13:00:04 +01:00
Dave Holoway
b9fd805a6d extract literals into separate files 2020-06-17 12:14:48 +01:00
Dave Holoway
29e6132cac fix type warnings 2020-06-17 11:30:20 +01:00
Dave Holoway
d85f49546a extract statement types into separate files 2020-06-17 11:26:48 +01:00
Dave Holoway
143a31b0c4 extract expression types into separate files 2020-06-17 11:07:57 +01:00
Dave Holoway
1c8eb75b4f fix resolving imported enclosed types 2020-06-17 00:09:49 +01:00
Dave Holoway
fe28924e0c parse try-with-resources 2020-06-16 23:47:16 +01:00
Dave Holoway
dc39ae53b1 add hex exponent support 2020-06-16 22:40:55 +01:00
Dave Holoway
9d4e8ab7d0 remove this qualifier from isCastExpression 2020-06-16 22:31:22 +01:00
Dave Holoway
ecf67d44c0 import types from same package 2020-06-16 22:25:58 +01:00
Dave Holoway
198317a5c2 add support for static member imports 2020-06-16 20:22:19 +01:00
Dave Holoway
bccc29251c allow null scope in findIdentifier 2020-06-16 18:55:14 +01:00
Dave Holoway
e88475dddd fix bad imports when resolving annotations 2020-06-16 18:51:00 +01:00
Dave Holoway
8df1a3464b fix resolving of class type variables 2020-06-16 18:50:35 +01:00
Dave Holoway
26e54bba37 update typemap declarations to use CEIType instead of JavaType 2020-06-16 18:21:14 +01:00
Dave Holoway
b61ef125fc don't report missing constructors if superclass has none 2020-06-16 18:01:32 +01:00
Dave Holoway
6af16cac43 allow empty enums 2020-06-16 17:51:31 +01:00
Dave Holoway
9017752d7b allow super as a member qualifier 2020-06-16 17:43:59 +01:00
Dave Holoway
58ff585a9d implement specialisation of SourceType 2020-06-16 17:41:01 +01:00
Dave Holoway
46838686ea ignore unresolved types in extends/implements 2020-06-16 16:01:21 +01:00
Dave Holoway
9ac6086bad add support for parsing parameterless lambdas 2020-06-16 15:42:48 +01:00
Dave Holoway
8b71037a58 include enclosing types in identifier search 2020-06-16 15:05:17 +01:00
Dave Holoway
eeb6d7c3d0 allow uppercase 0X in hex literals 2020-06-16 13:58:45 +01:00
Dave Holoway
f74f4b26c6 add support for parsing enum values 2020-06-16 13:57:08 +01:00
Dave Holoway
b050f3a82d start separating validation from parsing 2020-06-16 12:59:08 +01:00
Dave Holoway
1801a81c0f allow trailing comma for array literals 2020-06-15 17:30:17 +01:00
Dave Holoway
14582503da remove local modifier validation during parse
add parameter modifier checking to validation
2020-06-15 17:16:39 +01:00
Dave Holoway
4af183e4e1 report errors from unit parsing 2020-06-15 16:58:45 +01:00