Skip to content

JParseCode 0.20.0

Compare
Choose a tag to compare
@TeamworkGuy2 TeamworkGuy2 released this 22 Nov 05:08
· 5 commits to master since this release

Method generic type parameters parsing support (i.e. 'public T Create()' in C#).

Added

  • Method generic type parameters added - MethodSig and sub-classes have a new typeParameters field. Note: if these 'types' contain lower/upper type bounds these are included in the typeName property in Java and are not yet included in C# parsing
    • Added basic unit tests for this new method generic type parameters parsing support
  • AstFragType.isBlock(CodeToken, char) overload for attempted performance optimization

Changed

  • Renamed DataTypeExtractor -> TypeExtractor
  • Added EnhancedListIterator as a replacement for TokenListIterable to try and simplify fragment iteration since it is a fairly hot section of code in most parsing scenarios
  • ParseTimes.TrackerAction enums renamed:
    • LOAD -> READ
    • PARSE -> EXTRACT_AST
  • Update dependency jtext-tokenizer@0.6.0 and code to match
    • Adjustments to new CharParserMatchableFactory() and CharConditions.Identifier.newInstance() calls in IdentifierTokenizer and NumberTokenizer
  • JSON output now excludes empty annotations arrays on fields, methods, and parameters
  • Additional performance log counters added to several methods and printed when performance info is enabled via -debug CLI flag

Removed

  • AstFragType.isType() static method and overloads since they were unused
  • Unused CommentTokenizer.createCommentTokenizerForJava()

Fixed

  • An exception being thrown when resolving class names if a file imported a namespace and also imported a child namespace of the first namespace