Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/AbstractParser.java @ 16832:13cf9b6b325c
Truffle-DSL: implemented import guards feature.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 14 Aug 2014 16:49:18 +0200 |
parents | 45c8f64978d6 |
children |
comparison
equal
deleted
inserted
replaced
16830:c3c07046a74b | 16832:13cf9b6b325c |
---|---|
81 Message message = messages.get(i); | 81 Message message = messages.get(i); |
82 if (!ElementUtils.isEnclosedIn(baseContainer.getMessageElement(), message.getOriginalContainer().getMessageElement())) { | 82 if (!ElementUtils.isEnclosedIn(baseContainer.getMessageElement(), message.getOriginalContainer().getMessageElement())) { |
83 // redirect message | 83 // redirect message |
84 MessageContainer original = message.getOriginalContainer(); | 84 MessageContainer original = message.getOriginalContainer(); |
85 String text = wrapText(original.getMessageElement(), original.getMessageAnnotation(), message.getText()); | 85 String text = wrapText(original.getMessageElement(), original.getMessageAnnotation(), message.getText()); |
86 Message redirectedMessage = new Message(null, baseContainer, text, message.getKind()); | 86 Message redirectedMessage = new Message(null, null, baseContainer, text, message.getKind()); |
87 model.getMessages().remove(i); | 87 model.getMessages().remove(i); |
88 baseContainer.getMessages().add(redirectedMessage); | 88 baseContainer.getMessages().add(redirectedMessage); |
89 } | 89 } |
90 } | 90 } |
91 | 91 |