Skip to content
Snippets Groups Projects
Commit 27bb890a authored by Mick Jordan's avatar Mick Jordan
Browse files

field access for environments

parent 9fc54653
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,12 @@ public abstract class AccessFieldNode extends RNode {
return RNull.instance;
}
@Specialization(order = 3)
public Object accessField(REnvironment env) {
Object obj = env.get(getField());
return obj == null ? RNull.instance : obj;
}
@Specialization(order = 1000)
public Object accessField(@SuppressWarnings("unused") RAbstractVector object) {
CompilerDirectives.transferToInterpreter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment