All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.truffleruby.interop.RubySourceLocation Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2022, 2024 Oracle and/or its affiliates. All rights reserved. This
 * code is released under a tri EPL/GPL/LGPL license. You can use it,
 * redistribute it and/or modify it under the terms of the:
 *
 * Eclipse Public License version 2.0, or
 * GNU General Public License version 2, or
 * GNU Lesser General Public License version 2.1.
 */
package org.truffleruby.interop;

import com.oracle.truffle.api.source.SourceSection;
import org.truffleruby.core.klass.RubyClass;
import org.truffleruby.language.RubyDynamicObject;

import com.oracle.truffle.api.object.Shape;

import java.util.Objects;

public final class RubySourceLocation extends RubyDynamicObject {

    public final SourceSection sourceSection;

    public RubySourceLocation(RubyClass rubyClass, Shape shape, SourceSection sourceSection) {
        super(rubyClass, shape);
        this.sourceSection = Objects.requireNonNull(sourceSection);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy