Mercurial > hg > graal-jvmci-8
annotate graal/com.oracle.truffle.ruby.runtime/src/com/oracle/truffle/ruby/runtime/RubyParserResult.java @ 13706:232eb6708943
Ruby: required fixes for moving FrameDescriptor to the RootNode.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 20 Jan 2014 13:44:54 +0100 |
parents | 0fbee3eb71f0 |
children |
rev | line source |
---|---|
13514 | 1 /* |
2 * Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. This | |
3 * code is released under a tri EPL/GPL/LGPL license. You can use it, | |
4 * redistribute it and/or modify it under the terms of the: | |
5 * | |
6 * Eclipse Public License version 1.0 | |
7 * GNU General Public License version 2 | |
8 * GNU Lesser General Public License version 2.1 | |
9 */ | |
10 package com.oracle.truffle.ruby.runtime; | |
11 | |
12 import com.oracle.truffle.api.nodes.*; | |
13 | |
14 /** | |
15 * The result of parsing Ruby code is a root node and a frame descriptor for the method in that | |
16 * root. The root node will always be a {@code RubyRootNode}, but this package is below the nodes | |
17 * package so currently cannot refer to it. | |
18 */ | |
19 public class RubyParserResult { | |
20 | |
13706
232eb6708943
Ruby: required fixes for moving FrameDescriptor to the RootNode.
Christian Humer <christian.humer@gmail.com>
parents:
13514
diff
changeset
|
21 private final RootNode rootNode; |
13514 | 22 |
13706
232eb6708943
Ruby: required fixes for moving FrameDescriptor to the RootNode.
Christian Humer <christian.humer@gmail.com>
parents:
13514
diff
changeset
|
23 public RubyParserResult(RootNode rootNode) { |
13514 | 24 assert rootNode != null; |
25 this.rootNode = rootNode; | |
26 } | |
27 | |
28 public RootNode getRootNode() { | |
29 return rootNode; | |
30 } | |
31 | |
32 } |