Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3844

ASTBrowser does not show the free-standing methods of script as it shows the statements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7-beta-2
    • 1.7-rc-1
    • ast builder
    • None

    Description

      def a = 1
      def b = 2
      def m1() {}
      def m2() {}
      

      The ASTBrowser for the above script shows the BlockStatement containing free-standing statements of the script as well as the script ClassNode that groovy makes for it internally, but it does now show the methods m1() / m2() as part of the AST for the free-standing script.

      I expected to see the following structure:

      BlockStatement
      methods
          - m1
          - m2
      ClassNode - script5687897897
      

      Attachments

        1. 3844_v17x.txt
          2 kB
          Roshan Dawrani

        Activity

          People

            roshandawrani Roshan Dawrani
            roshandawrani Roshan Dawrani
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: