Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/TemplateMethod.java @ 9227:6d92fdf1c999
Fixes several minor issues.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 22 Apr 2013 12:52:00 +0200 |
parents | 61ba6fc21ba4 |
children | 8e3a1635cc9e |
comparison
equal
deleted
inserted
replaced
9226:e27f125147d6 | 9227:6d92fdf1c999 |
---|---|
149 } | 149 } |
150 allParameters.addAll(getParameters()); | 150 allParameters.addAll(getParameters()); |
151 return Collections.unmodifiableList(allParameters); | 151 return Collections.unmodifiableList(allParameters); |
152 } | 152 } |
153 | 153 |
154 public boolean canBeAccessedByInstanceOf(TypeMirror type) { | 154 public boolean canBeAccessedByInstanceOf(ProcessorContext context, TypeMirror type) { |
155 TypeMirror methodType = Utils.findNearestEnclosingType(getMethod()).asType(); | 155 TypeMirror methodType = Utils.findNearestEnclosingType(getMethod()).asType(); |
156 return Utils.isAssignable(type, methodType) || Utils.isAssignable(methodType, type); | 156 return Utils.isAssignable(context, type, methodType) || Utils.isAssignable(context, methodType, type); |
157 } | 157 } |
158 | 158 |
159 public ExecutableElement getMethod() { | 159 public ExecutableElement getMethod() { |
160 return method; | 160 return method; |
161 } | 161 } |