| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 package com.google.dart.compiler.ast; | |
| 6 | |
| 7 /** | |
| 8 * Implements the #resource directive. | |
| 9 */ | |
| 10 public class DartResourceDirective extends DartDirective { | |
| 11 private DartStringLiteral resourceUri; | |
| 12 | |
| 13 public DartResourceDirective(DartStringLiteral resourceUri) { | |
| 14 this.resourceUri = becomeParentOf(resourceUri); | |
| 15 } | |
| 16 | |
| 17 public DartStringLiteral getResourceUri() { | |
| 18 return resourceUri; | |
| 19 } | |
| 20 | |
| 21 @Override | |
| 22 public void visitChildren(ASTVisitor<?> visitor) { | |
| 23 safelyVisitChild(resourceUri, visitor); | |
| 24 } | |
| 25 | |
| 26 @Override | |
| 27 public <R> R accept(ASTVisitor<R> visitor) { | |
| 28 return visitor.visitResourceDirective(this); | |
| 29 } | |
| 30 } | |
| OLD | NEW |