1710 Commits

Author SHA1 Message Date
Ben Gruver
8c1d8ddef2 Merge branch 'master' into smalidea3 2015-03-04 20:58:14 -08:00
Ben Gruver
06d108d791 Refactor how the PARAM_LIST_OR_ID thing is parsed
This gets rids of the empty placeholder tokens, which cause errors
in IDEA's built-in lexer support code
2015-03-04 20:56:53 -08:00
Ben Gruver
ff7172c68d Improve error recovery of colons in various places 2015-03-04 20:56:53 -08:00
Ben Gruver
16c154b96e Improve error recovery for commas 2015-03-04 20:56:53 -08:00
Ben Gruver
0f597ae106 Add better error recovery for open/close braces 2015-03-04 20:56:53 -08:00
Ben Gruver
d7cd293904 Refactor open and close braces into the register_list/register_range rules 2015-03-04 20:56:53 -08:00
Ben Gruver
21d509aa6c Add better error recovery for the type_descriptor rule 2015-03-04 20:56:53 -08:00
Ben Gruver
62958a7091 Improve some error recovery around open/close parens in method prototypes 2015-03-04 20:56:49 -08:00
Ben Gruver
f70084bdfe Use [^] for the lexer's catch-all rule
[^] matches the entire character set, while . doesn't match new lines, etc.
2015-03-04 00:16:46 -08:00
Ben Gruver
e7f1549573 Merge pull request #28 from victorkp/master
Update doedexerant makefile
2015-03-03 18:10:16 -08:00
Ben Gruver
6a56d9a9e9 Merge pull request #29 from yirkha/master
Fix for Dalvik VM crash on parameter annotations
2015-03-03 18:08:44 -08:00
Ben Gruver
ea4074fdcc Don't try to test for reserved file names
Instead, we'll just check os.name
2015-03-01 22:42:48 -08:00
Ben Gruver
c19627e2d3 Enable parallel gradle execution by default 2015-03-01 22:35:30 -08:00
Ben Gruver
f0c481a7a1 Use single-quotes in build.gradle files when double-quotes aren't needed 2015-03-01 22:30:33 -08:00
Ben Gruver
3279a8cd4b Simplify how the accessorTest is built and run 2015-03-01 22:30:33 -08:00
Ben Gruver
57bd527d43 Use the antlr plugin for gradle 2015-03-01 20:31:10 -08:00
Ben Gruver
0f6f00a325 Use the jflex plugin for gradle 2015-03-01 20:30:09 -08:00
Ben Gruver
900ad6ea87 Use the proguard plugin for gradle 2015-03-01 19:51:34 -08:00
Ben Gruver
b3f933d27a Upgrade to gradle 2.3 2015-03-01 19:23:56 -08:00
Ben Gruver
59e56fb0dd Add IDEA project files to .gitignore 2015-03-01 19:14:27 -08:00
Ben Gruver
1d3d657b7f Improve error recovery of arrow parsing 2015-02-26 09:41:55 -08:00
Ben Gruver
18ff2d8368 Fix SmaliMethodReference.getReturnType() on missing return type 2015-02-26 09:37:49 -08:00
Ben Gruver
bcc0d5fa64 Improve error handling for missing reference_type_descriptor 2015-02-26 09:37:16 -08:00
Ben Gruver
a0149307bd Fix some nullability problems in SmaliMethodReference 2015-02-26 09:04:01 -08:00
Ben Gruver
24b1063e50 Improve parsing error recovery for the end method directive 2015-02-26 08:58:37 -08:00
Ben Gruver
f35c18489b Improve error handling for subannotation parsing 2015-02-21 14:02:54 -08:00
Ben Gruver
4640cc9c5b Improve error handling for literal parsing 2015-02-21 14:02:12 -08:00
Ben Gruver
251d6073b9 Improve error handling for annotation element parsing 2015-02-21 12:43:13 -08:00
Ben Gruver
1325537f8a Improve the error handling of annotation parsing 2015-02-21 12:23:38 -08:00
Ben Gruver
cbde720efa Improve the parsing of a field type 2015-02-20 20:54:31 -08:00
Ben Gruver
01f8c7dc7b Improve how the field annotations/end field thing is parsed 2015-02-20 20:03:45 -08:00
Ben Gruver
d5b748f4f5 Minor improvement to how the colon is parsed for a field declaration 2015-02-20 19:04:44 -08:00
Ben Gruver
dd4e572d0b Ensure there's always a member name element for a field 2015-02-19 20:03:59 -08:00
Ben Gruver
7d0a6c3854 Get rid of recoverWithMarker
Instead, we can just do a mark() before calling recover. herp-a-derp.
2015-02-19 20:01:18 -08:00
Ben Gruver
3505b35057 Merge the empty modifier list with the access list 2015-02-18 20:04:58 -08:00
Ben Gruver
92352fa44c Convert SmaliClassStatement into a stub 2015-02-18 19:55:42 -08:00
Jiri Hruska
5dde46b43d Fix for Dalvik VM crash on parameter annotations
Dalvik VM before Jelly Bean MR1 (4.2) crashes if there are any
NO_OFFSET (0) values in parameter annotation list.
(https://code.google.com/p/android/issues/detail?id=35304)
2015-02-19 02:59:41 +01:00
Victor Kaiser-Pendergrast
a922d5a155 Update doedexerant makefile
Fixes "CANNOT LINK EXECUTABLE: empty/missing DT_HASH in "./deodexerant" (build with --hash-style=gnu?)" error
2015-02-18 10:55:45 -05:00
Ben Gruver
eb1d98f063 Add a deserializeNullableString utility method to the base stub class 2015-02-16 13:03:08 -08:00
Ben Gruver
9423a7d7d0 Start improving the error resistance of field declarations 2015-02-16 12:57:49 -08:00
Ben Gruver
70693ff6bb Add new LightCodeInsightParsingTestCase
This is based on IDEA's ParsingTestCase, but extending
LightCodeInsightFixtureTestCase, in order to provide
more functionality
2015-02-16 12:37:06 -08:00
Ben Gruver
f47973006b Split out a separate class access list, to improve parsing 2015-02-16 10:45:26 -08:00
Ben Gruver
ea04d22ffd Don't try to analyze methods with errors 2015-02-15 14:11:40 -08:00
Ben Gruver
7f6afa6a25 Move the return type to the MethodPrototype stub 2015-02-15 14:09:05 -08:00
Ben Gruver
6a1d56f0f0 Replace some usages of getParent() with getStubOrPsiParent() 2015-02-15 13:15:19 -08:00
Ben Gruver
e0aff4bda5 Move some implementation from SmaliBaseReferenceList to its implementors 2015-02-15 13:05:52 -08:00
Ben Gruver
6a520231e7 Implement an empty throws list 2015-02-15 12:08:03 -08:00
Ben Gruver
c623d94ff0 Fix how the PsiType is created for a SmaliMethodParam stub 2015-02-15 10:41:24 -08:00
Ben Gruver
16dde79e58 Add an isStatic() helper for SmaliMethod 2015-02-15 10:41:24 -08:00
Ben Gruver
d733304122 Make sure we always get a method prototype and method param list 2015-02-14 20:29:05 -08:00