JShell API: Declaration naming: Snippet, Kind, and internally Key

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9-repo-kulla
    • Affects Version/s: 9-repo-kulla
    • Component/s: tools
    • None

      Currently there is:

          Snippet
            PersistentSnippet
              ImportSnippet
              DeclarationSnippet
                MethodDeclSnippet
                VariableDeclSnippet
                TypeDeclSnippet
            StatementSnippet
            ExpressionSnippet
            ErroneousSnippet

      and these Kind values corresponding to concrete classes:

          IMPORT
          METHOD_DECL
          VARIABLE_DECL
          TYPE_DECL
          STATEMENT
          EXPRESSION
          ERRONEOUS

      I've heard objections to the XxxDeclSnippet format of names. My issue with just dropping it Decl is that "Variable" alone is somewhat ambiguous (to which I've heard the suggestion, of using "Var"), and more significantly that "Type" by itself is just plane confusing.

      So, these changes ---

                MethodSnippet
                VarSnippet
                TypeDeclSnippet

      and:

          METHOD
          VAR
          TYPE_DECL

      And corresponding changes in *Key.



            Assignee:
            Robert Field (Inactive)
            Reporter:
            Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: