groovy
  1. groovy
  2. GROOVY-1375

Implement deepClone and line/col number assignment for MethodNodes

    Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.0
    • Component/s: class generator
    • Labels:
      None
    • Number of attachments :
      0

      Description

      As per the discussion on the grails mailing list to inject MethodNodes in GCL it would be handy if we could get groovy to do the work for us to create said MethodNode:

      "let us define a text containing all methods we need. Then give that a
      CompileUnit add a custom Operation for the convert step, where you
      extract the methods. Then run the convert step and you are ready. I
      could add a deepClone method, so that you can always have your own
      method node... they are modified during the later steps. Only thing left
      is to set the line/col information for these nodes. I could prepare that
      if you want. Besides the changes for the cloning, it would be only a
      small piece of code. An alternative is to extract that information each
      time you create a class in grails... I don't think that is really an
      option "

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            blackdrag blackdrag
            Reporter:
            Graeme Rocher
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: