Skip to content

JParseCode 0.19.0

Compare
Choose a tag to compare
@TeamworkGuy2 TeamworkGuy2 released this 04 Jul 20:38
· 8 commits to master since this release

0.19.0 - 2019-07-04

Changed

  • IdentifierTokenizer.createIdentifierWithGenericTypeTokenizer() now takes one parameter int maxGenericTypeDepth
  • Changed CsFileTokenizer.createFileParser() -> createCsTokenizers() and JavaFileTokenizer.createFileParser() -> createJavaTokenizers()
  • Added some private constructors that throw AssertionError to static classes

Removed

  • Changed GenericTypeTokenizer._createGenericTypeTokenizer() from public to private
  • Removed IdentifierTokenizer field static int genericTypeDepth in favor of callers explicitly passing the argument to createIdentifierWithGenericTypeTokenizer() which now takes one parameter int maxGenericTypeDepth
  • Removed CodeTokenizerBuilder in favor of CodeTokenizer static methods
    • Manually build a tokenizer list of type PairList<CharParserFactory, TextTransformer<CodeTokenType>>
    • Call CodeTokenizer.createTokenizer() with the language you used to pass to the CodeTokenizerBuilder constructor and the list of tokenizers you manually created

Fixed

  • AnnotationExtractor to handle all C# keyword-followed-by-a-block annotation arguments like default(T), nameof(T), and typeof(T)