comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/SLStatementNode.java @ 18163:c88ab4f1f04a

re-enabled Checkstyle with the release of 6.0 that supports Java 8; fixed existing Checkstyle warnings
author Doug Simon <doug.simon@oracle.com>
date Fri, 24 Oct 2014 16:18:10 +0200
parents f0c3de09f12a
children e3c95cbbb50c
comparison
equal deleted inserted replaced
18162:ab62800259ff 18163:c88ab4f1f04a
87 87
88 @Override 88 @Override
89 public Probe probe() { 89 public Probe probe() {
90 Node parent = getParent(); 90 Node parent = getParent();
91 91
92 if (parent == null) 92 if (parent == null) {
93 throw new IllegalStateException("Cannot probe a node without a parent"); 93 throw new IllegalStateException("Cannot probe a node without a parent");
94 }
94 95
95 if (parent instanceof SLStatementWrapper) { 96 if (parent instanceof SLStatementWrapper) {
96 return ((SLStatementWrapper) parent).getProbe(); 97 return ((SLStatementWrapper) parent).getProbe();
97 } 98 }
98 99
106 } 107 }
107 108
108 protected SLContext getRootNodeSLContext(Node node) { 109 protected SLContext getRootNodeSLContext(Node node) {
109 assert node != null; 110 assert node != null;
110 111
111 if (node instanceof SLRootNode) 112 if (node instanceof SLRootNode) {
112 return ((SLRootNode) node).getSLContext(); 113 return ((SLRootNode) node).getSLContext();
114 }
113 return getRootNodeSLContext(node.getParent()); 115 return getRootNodeSLContext(node.getParent());
114 } 116 }
115 } 117 }