MyRefResolver.jadd 739 Bytes
Newer Older
1
2
3
aspect MyRewrites {

  // context-independent name resolution
4
  refine RefResolverStubs eq ASTNode.globallyResolveNamedElementByToken(String id) {
5
6
7
8
    System.out.println("resolving " + id + " to " + root().findNamedElement(id));
    return root().findNamedElement(id);
  }

9
  // context-independent name resolution
10
  refine RefResolverStubs eq ASTNode.globallyResolveAByToken(String id) {
11
12
13
14
15
    System.out.println("resolving " + id + " to " + root().findNamedElement(id));
    return root().findA(id);
  }

  // context-independent name resolution
16
  refine RefResolverStubs eq ASTNode.globallyResolveBByToken(String id) {
17
18
19
20
    System.out.println("resolving " + id + " to " + root().findNamedElement(id));
    return root().findB(id);
  }

21
22
}