1
0
mirror of https://github.com/chylex/Code-Statistics.git synced 2024-11-24 03:42:46 +01:00
Commit Graph

175 Commits

Author SHA1 Message Date
f6e07f3247 Remove all unused methods from StringUtils 2016-03-05 17:10:13 +01:00
bd757e639e Make Variables.Increment ignore zero amount 2016-03-05 16:47:42 +01:00
e7502b8ed0 Fix handling Java import statements that end with stars 2016-03-05 16:07:32 +01:00
a0ee24fb27 Fix Project & FileSearch task chaining 2016-03-02 12:41:07 +01:00
e3d345efd6 Add basic exception handling to FileSearch and Project tasks 2016-03-02 11:49:57 +01:00
1e96d2090c Add Variables.Dummy 2016-03-01 20:00:58 +01:00
c1d15be2dd Tweak debugger breakpoint in JavaCodeParser 2016-02-29 13:53:38 +01:00
234eb3e8a0 Fix Java string characters inside comments 2016-02-29 13:52:32 +01:00
b39cb659ff Add InvokeOnUIThread for easier handling of threaded UI updates 2016-02-28 16:37:46 +01:00
49470ca6f4 Fix Java static{ skipping the bracket, method generics, and update debugging 2016-02-28 14:24:45 +01:00
8ac8d3363f Fix Java static{ block, type annotations, extra semicolon handling, default interface methods 2016-02-28 14:04:54 +01:00
82767aaaa4 Add Java identifier statistics and lists 2016-02-28 13:35:49 +01:00
466c7dfaa2 Add Java TypeIdentifier for easier identifier handling 2016-02-28 13:33:44 +01:00
5722acbb09 Remove unused 'using' directives and redundant field initialization 2016-02-27 15:36:44 +01:00
02a4f7bd92 Provide Equals, GetHashCode, and equality operators in Java TypeOf 2016-02-27 15:23:42 +01:00
8527e491d9 Fix handling of Java primitive arrays 2016-02-26 05:48:18 +01:00
e292f3afb9 Add ^n token to CodeParser.SkipIfMatch 2016-02-26 05:48:02 +01:00
6186b6f043 Fix Java throws declaration detection and Enum semicolon handling 2016-02-26 05:42:48 +01:00
dbde7ab6b3 Add startIndex safeguard to CodeParser.SubstrIndex 2016-02-26 05:20:58 +01:00
72ad3ec8d0 Add Java enum value reading 2016-02-26 04:58:58 +01:00
4b9d051c9c Fix wrong character in JavaCodeParser.ReadMethodParameterList 2016-02-26 04:52:50 +01:00
fa319481a1 Fix JavaCodeParser.ReadMethodParameterList not working with multiple params 2016-02-25 15:58:25 +01:00
ece021a931 Add Field parsing to JavaCodeParser and tweak ReadMethodParameterList 2016-02-25 15:56:29 +01:00
f1c9dcca3b Fix handling of abstract/interface methods with no body in JavaCodeParser 2016-02-25 15:18:20 +01:00
6ea82e135d Add temporary skip to Java Enum type handling 2016-02-25 13:52:54 +01:00
44bd0d78b2 Add Method reading (including constructors and initializers) to JavaCodeParser 2016-02-25 13:52:41 +01:00
28ece26e99 Add JavaCodeParser.SkipTypeArrayAndGenerics to skip <>[] and use in ReadTypeOf 2016-02-25 13:51:50 +01:00
cec14a9d8e Add TypeData class to Java Type for storing declaration type specific data 2016-02-25 13:50:26 +01:00
d147819a84 Add TypeOf.AsSimpleType 2016-02-25 13:50:03 +01:00
4b43f8cf2b Fix compile error in TypeOf 2016-02-25 13:09:33 +01:00
ff617bde6a Add JavaCodeParser.ReadTypeOf for return/field type reading 2016-02-25 11:37:05 +01:00
771a7aeb45 Add Java TypeOf struct and use it for return/parameter types 2016-02-25 10:50:20 +01:00
660839eac8 Add skeletons of Java Field and Method classes 2016-02-24 19:38:38 +01:00
6f8be73787 Add JavaCodeParser.ReadPrimitive 2016-02-24 19:29:03 +01:00
5a1417532d Make sure to handle special formatting in Java package declarations 2016-02-24 19:23:25 +01:00
6a0d8607c3 Add JavaCodeParser.ReadToIfBalanced with unit tests 2016-02-24 18:37:28 +01:00
f0daf254b5 Add JavaCodeParser.SkipToIfBalanced with unit tests 2016-02-24 18:15:25 +01:00
990bdfdc72 Add Java Primitives enum 2016-02-24 16:50:11 +01:00
45d951080e Address globalization - add Lang class and missing culture info 2016-02-24 16:04:13 +01:00
389e8562b9 Fix Variables to use a HashSet for flags instead of a List 2016-02-24 13:50:32 +01:00
76a575a08d Work on Java Type contents reading (nested types) 2016-02-24 13:37:31 +01:00
4984e5f4b5 Fix spelling and rename skip-read methods in JavaCodeParser 2016-02-24 12:54:11 +01:00
7eb75efb2b Add Java Type statistics into output 2016-02-24 02:44:14 +01:00
6197b4b2cc Move a bunch of Java parsing methods to the parser class from JavaState 2016-02-24 02:44:02 +01:00
3f42cfcf6d Add Java Type reading to JavaState and update the Type class to be a Member 2016-02-24 02:00:55 +01:00
699b32b8d6 Add Java Member class and annotation & modifier list reading methods 2016-02-24 02:00:18 +01:00
cac64aaadf Add a Java Type class and declaration type reading 2016-02-23 22:39:16 +01:00
81802c26d3 Remove out parameter in JavaParseUtils.ReadStruct 2016-02-23 22:36:25 +01:00
2ec8a85f84 Work on Java modifiers (reading, add properties, make the classes public) 2016-02-23 20:28:22 +01:00
8e5b416ab3 Add JavaParseUtils.ReadStructList for reading lists of elements in Java code 2016-02-23 20:27:06 +01:00
bd9dcf3920 Rename ImportStatement to Import 2016-02-23 18:20:40 +01:00
f07178749b Add Java Modifiers enum 2016-02-23 18:20:15 +01:00
205d201a9c Move JavaCharacters and JavaParseUtils to Java.Utils namespace 2016-02-23 17:40:46 +01:00
08bbe5e583 Add .jav extension as a Java code file 2016-02-23 17:19:39 +01:00
f5caac32e0 Add Java import parsing and stats 2016-02-23 16:52:38 +01:00
6f4e08548f Fix Java package reading (add count to output, skip semicolon) 2016-02-23 16:34:26 +01:00
32daad3651 Add CodeParser.ReadToSkip and update CodeParser unit tests 2016-02-23 16:33:45 +01:00
7186fec76d Work on Java parsing (fix unused PrepareCodeFile, add package count) 2016-02-23 16:23:38 +01:00
d709da2545 Override Equals, hash code, equality operators in Java Annotation struct 2016-02-23 16:11:34 +01:00
f316ae6e34 Move Java space skipping to JavaState from JavaCodeParser 2016-02-23 15:41:28 +01:00
0d1de755c2 Override Clone in JavaCodeParser 2016-02-23 15:41:08 +01:00
a9800c8a48 Implement package declaration reading in Java files 2016-02-23 14:54:02 +01:00
5989531bd6 Add CodeParser.ReadTo with unit tests 2016-02-23 14:46:30 +01:00
48823c2ece Add CodeParser.SkipIfMatch with unit tests 2016-02-23 14:35:24 +01:00
b7055cee67 Rename SkipBlockGet to ReadBlock and NextIdentifier to ReadIdentifier 2016-02-22 23:03:57 +01:00
cc97f3938e Push current status of Java parsing (unfinished package reading, string.Empty tweak) 2016-02-22 17:21:24 +01:00
aca1a447b5 Add JavaCodeParser.ReadAnnotation with unit tests 2016-02-22 16:52:20 +01:00
6ca477d7da Add JavaCodeParser.ReadFullTypeName 2016-02-22 16:51:20 +01:00
a22252a0ed Add Java element structs - Annotation & ImportStatement 2016-02-22 16:43:28 +01:00
118977a57c Add JavaParseUtils.FullToSimpleName with unit tests 2016-02-22 16:40:14 +01:00
9502461ba2 Add a basic skeleton for JavaCodeParser class to handle java code files 2016-02-22 14:36:53 +01:00
fc2fe08fef Add JavaCharacters.IsNotReservedWord and IsWhiteSpace (replace IsValidIdentifier) 2016-02-22 14:36:06 +01:00
b39c6ded32 Add identifier reading to CodeParser with unit tests 2016-02-22 13:53:28 +01:00
5912301e06 Add documentation and unit tests for CodeParser.Clone 2016-02-22 13:45:24 +01:00
56fae34448 Add public CodeParser cloning, fix SubstrIndex again, add Skip 2016-02-22 13:26:06 +01:00
61138391d9 Prepare CodeParser for being extended 2016-02-22 13:11:41 +01:00
21519be744 Improve unit tests for CodeParser and fix a block reading cursor index bug 2016-02-22 13:10:01 +01:00
0decbbfec3 Add a basic CodeParser class for code navigation plus unit tests 2016-02-22 02:03:02 +01:00
1bc30401f1 Add a WIP JavaCharacters class with identifier characters 2016-02-21 23:28:04 +01:00
899ab4516e Do minor refactoring (convert JavaFileInfo to class, rename ProcessCodeFile) 2016-02-21 22:53:01 +01:00
d5b589fbcb Change method signature of PrepareFiileContents to use string instead of File 2016-02-21 15:59:21 +01:00
652b78dc0f Address a couple concerns from static code analysis 2016-02-20 23:46:17 +01:00
49596be234 Add AbstractLanguageFileHandler.PrepareFileContents and implement in existing handlers 2016-02-20 23:15:00 +01:00
2950aaa653 Add JavaParseUtils with basic java code file processing using regex 2016-02-20 23:14:35 +01:00
f468c1c813 Make searchData in Project public 2016-02-20 22:58:33 +01:00
1ba4bed9d2 Change File.Contents to a single string instead of a string array 2016-02-19 21:27:58 +01:00
feff908b70 Add argument check to ParseUtils.CountCharacters 2016-02-19 16:22:52 +01:00
3656b240c9 Add essential Java handling classes 2016-02-19 15:57:12 +01:00
efad2b0b44 Work on language file handler (max/avg values, top file lists) 2016-02-19 15:56:35 +01:00
08180e422b Create a new ParseUtils class with methods specific to code 2016-02-19 15:54:30 +01:00
71f7e0818d Rename ParseUtils to StringUtils, since it consists of very general methods 2016-02-19 15:46:54 +01:00
3836c3a6b6 Rename Variables.ArrayAdapter.ToString to ToStringFormat 2016-02-19 13:08:47 +01:00
2750f542a4 Fix number formatting for array variables 2016-02-19 13:07:57 +01:00
aca6c9d62e Add FileIntValue struct to assign numbers to files 2016-02-18 23:24:47 +01:00
50ae10443a Add IFileHandler.FinalizeProject to run after all files are processed 2016-02-18 22:21:54 +01:00
f2715d25b9 Add extension utility class for special int variable handling 2016-02-18 22:21:21 +01:00
b4c4ed8e55 Fix int variable formatting when using Variables.SetVariable 2016-02-18 22:04:42 +01:00
3adc7d29fa Move ParseUtils to Handling/Utils namespace 2016-02-18 21:57:10 +01:00
3a567abdaf Convert array sorter to Comparison<T> and update AssetHandler to use new methods 2016-02-18 18:55:37 +01:00
67f4e6c88c Improve support for int values in Variables 2016-02-18 13:48:57 +01:00