Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java @ 11535:8f0fb0ade839
Truffle: add alternate Node/RootNode constructors with SourceSection argument.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Thu, 05 Sep 2013 15:03:36 -0700 |
parents | 494b818b527c |
children | 5f532ea846fb |
comparison
equal
deleted
inserted
replaced
11534:2d759e68c8ca | 11535:8f0fb0ade839 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this | 7 * published by the Free Software Foundation. Oracle designates this |
57 | 57 |
58 protected Node() { | 58 protected Node() { |
59 CompilerAsserts.neverPartOfCompilation(); | 59 CompilerAsserts.neverPartOfCompilation(); |
60 } | 60 } |
61 | 61 |
62 protected Node(SourceSection sourceSection) { | |
63 CompilerAsserts.neverPartOfCompilation(); | |
64 this.sourceSection = sourceSection; | |
65 } | |
66 | |
62 /** | 67 /** |
63 * Assigns a link to a guest language source section to this node. | 68 * Assigns a link to a guest language source section to this node. |
64 * | 69 * |
65 * @param section the object representing a section in guest language source code | 70 * @param section the object representing a section in guest language source code |
66 */ | 71 */ |