use of dyvilx.tools.compiler.ast.method.IMethod in project Dyvil by Dyvil.
the class REPLContext method getMethodMatches.
@Override
public void getMethodMatches(MatchList<IMethod> list, IValue receiver, Name name, ArgumentList arguments) {
for (IMethod method : this.methods) {
method.checkMatch(list, receiver, name, arguments);
}
if (name == null) {
return;
}
final Name removeEq = Util.removeEq(name);
IProperty property = this.properties.get(removeEq);
if (property != null) {
property.checkMatch(list, receiver, name, arguments);
}
final IField field = this.fields.get(removeEq);
if (field != null) {
property = field.getProperty();
if (property != null) {
property.checkMatch(list, receiver, name, arguments);
}
}
}
Aggregations