Project

General

Profile

3353a_20171019a.patch

Greg Shah, 10/19/2017 11:01 AM

Download (1.1 KB)

View differences:

new/src/com/goldencode/p2j/uast/progress.g 2017-10-19 14:52:52 +0000
1748 1748
**                           def_frame stmt we don't have access to the full statement AST.
1749 1749
** 332 CA  20170929          Added MNEMONIC and PREPROCESSED-LABEL FWD extension attributes.
1750 1750
** 333 CA  20171006          Finished USE-DICT-EXPS support, for both HELP and VALEXP.
1751
** 334 GES 20171019          Method return values can have an optional extent qualifier.
1751 1752
*/
1752 1753
/*
1753 1754
** This program is free software: you can redistribute it and/or modify
......
10018 10019
method_stmt
10019 10020
   {
10020 10021
      int mtype = -1;
10022
      int size  = -1;
10021 10023
   }
10022 10024
   :
10023 10025
      KW_METHOD^
......
10031 10033
         | KW_FINAL
10032 10034
      )*
10033 10035
      mtype = cls:method_return
10036
      (
10037
         size = extent
10038
         {
10039
            if (size == -1 || size > 0) ##.putAnnotation("extent",  new Long(size));
10040
         }
10041
      )?
10034 10042
      s:any_symbol_at_all
10035 10043
      
10036 10044
      param_list_definition[true, false] (DOT! | COLON!)