Lines 66-79
Link Here
|
66 |
|
66 |
|
67 |
int wildcardRank; |
67 |
int wildcardRank; |
68 |
|
68 |
|
69 |
BindingKeyResolver outerMostResolver; |
69 |
CompilationUnitDeclaration outerMostParsedUnit; |
70 |
|
70 |
|
71 |
private BindingKeyResolver(BindingKeyParser parser, Compiler compiler, LookupEnvironment environment, int wildcardRank, BindingKeyResolver outerMostResolver) { |
71 |
private BindingKeyResolver(BindingKeyParser parser, Compiler compiler, LookupEnvironment environment, int wildcardRank, CompilationUnitDeclaration outerMostParsedUnit) { |
72 |
super(parser); |
72 |
super(parser); |
73 |
this.compiler = compiler; |
73 |
this.compiler = compiler; |
74 |
this.environment = environment; |
74 |
this.environment = environment; |
75 |
this.wildcardRank = wildcardRank; |
75 |
this.wildcardRank = wildcardRank; |
76 |
this.outerMostResolver = outerMostResolver; |
76 |
this.outerMostParsedUnit = outerMostParsedUnit; |
77 |
} |
77 |
} |
78 |
|
78 |
|
79 |
public BindingKeyResolver(String key) { |
79 |
public BindingKeyResolver(String key) { |
Lines 109-115
Link Here
|
109 |
} |
109 |
} |
110 |
|
110 |
|
111 |
public void consumeCapture(final int position) { |
111 |
public void consumeCapture(final int position) { |
112 |
CompilationUnitDeclaration outerParsedUnit = this.outerMostResolver == null ? this.parsedUnit : this.outerMostResolver.parsedUnit; |
112 |
CompilationUnitDeclaration outerParsedUnit = this.outerMostParsedUnit == null ? this.parsedUnit : this.outerMostParsedUnit; |
113 |
if (outerParsedUnit == null) return; |
113 |
if (outerParsedUnit == null) return; |
114 |
final Binding wildcardBinding = ((BindingKeyResolver) this.types.get(0)).compilerBinding; |
114 |
final Binding wildcardBinding = ((BindingKeyResolver) this.types.get(0)).compilerBinding; |
115 |
class CaptureFinder extends ASTVisitor { |
115 |
class CaptureFinder extends ASTVisitor { |
Lines 476-482
Link Here
|
476 |
} |
476 |
} |
477 |
|
477 |
|
478 |
public BindingKeyParser newParser() { |
478 |
public BindingKeyParser newParser() { |
479 |
return new BindingKeyResolver(this, this.compiler, this.environment, this.rank, this.outerMostResolver == null ? this : this.outerMostResolver); |
479 |
return new BindingKeyResolver(this, this.compiler, this.environment, this.rank, this.outerMostParsedUnit == null ? this.parsedUnit : this.outerMostParsedUnit); |
480 |
} |
480 |
} |
481 |
|
481 |
|
482 |
public String toString() { |
482 |
public String toString() { |