+
Skip to content

Decorate bound variables in Java patterns #6084

@shahms

Description

@shahms

We decorate uses of these variables, but not the variables themselves, e.g. https://cs.opensource.google/bazel/bazel/+/master:src/main/java/com/google/devtools/build/lib/vfs/Root.java;drc=4eae19d86f048dffdd85f37e8887d8af6470a248;l=147

    public int compareTo(Root o) {
      if (o instanceof AbsoluteRoot) {
        return 1;
     //- @pathRoot defines/binding RootVar
      } else if (o instanceof PathRoot pathRoot) {
        //- @pathRoot ref RootVar
        return path.compareTo(pathRoot.path);
      } else {
        throw new AssertionError("Unknown Root subclass: " + o.getClass().getName());
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    indexingIssues pertaining to indexingjavaIssues affecting the Java language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载