diff --git a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RSerialize.java b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RSerialize.java index 0ff77a7e3554d8d25c496cda2d805a0c97fd75c2..a3058cb0a09a66f292e205c3257ab6d90c5aa2f0 100644 --- a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RSerialize.java +++ b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RSerialize.java @@ -2114,13 +2114,13 @@ public class RSerialize { private void setSourceSection(RSyntaxElement body) { SourceSection lazySourceSection = body.getLazySourceSection(); - if (lazySourceSection != RSyntaxNode.LAZY_DEPARSE) { + if (RSource.getPathInternal(lazySourceSection.getSource()) != null) { ss = lazySourceSection; } } public boolean hasAttributes() { - return explicitAttributes != null && !explicitAttributes.isEmpty() || ss != null && ss != RSyntaxNode.LAZY_DEPARSE; + return explicitAttributes != null && !explicitAttributes.isEmpty() || ss != null; } public DynamicObject getExplicitAttributes() {