Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(773)

Unified Diff: pkg/compiler/lib/src/kernel/unavailable.dart

Issue 2265383002: Copy Rasta visitor to dart2js. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: missed some renames Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_visitor.dart ('k') | pkg/compiler/lib/src/kernel/unresolved.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/unavailable.dart
diff --git a/pkg/compiler/lib/src/kernel/unavailable.dart b/pkg/compiler/lib/src/kernel/unavailable.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d97f76cc3913160732cc9a288d27562ff6f0c83f
--- /dev/null
+++ b/pkg/compiler/lib/src/kernel/unavailable.dart
@@ -0,0 +1,133 @@
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE.md file.
+
+import "../tree/tree.dart"
+ show
+ AsyncModifier,
+ ClassNode,
+ Combinator,
+ Export,
+ Expression,
+ GotoStatement,
+ Import,
+ LibraryDependency,
+ LibraryName,
+ LibraryTag,
+ Literal,
+ Loop,
+ MixinApplication,
+ Modifiers,
+ NamedMixinApplication,
+ Node,
+ NodeList,
+ Part,
+ PartOf,
+ Postfix,
+ Prefix,
+ Statement,
+ StringInterpolationPart,
+ StringNode,
+ Typedef;
+
+abstract class UnavailableVisitor {
+ void visitNode(Node node) {
+ throw "No RAST available for Node";
+ }
+
+ void visitAsyncModifier(AsyncModifier node) {
+ throw "No RAST available for AsyncModifier";
+ }
+
+ void visitClassNode(ClassNode node) {
+ throw "No RAST available for ClassNode";
+ }
+
+ void visitCombinator(Combinator node) {
+ throw "No RAST available for Combinator";
+ }
+
+ void visitExport(Export node) {
+ throw "No RAST available for Export";
+ }
+
+ void visitExpression(Expression node) {
+ throw "No RAST available for Expression";
+ }
+
+ void visitGotoStatement(GotoStatement node) {
+ throw "No RAST available for GotoStatement";
+ }
+
+ void visitImport(Import node) {
+ throw "No RAST available for Import";
+ }
+
+ void visitLibraryDependency(LibraryDependency node) {
+ throw "No RAST available for LibraryDependency";
+ }
+
+ void visitLibraryName(LibraryName node) {
+ throw "No RAST available for LibraryName";
+ }
+
+ void visitLibraryTag(LibraryTag node) {
+ throw "No RAST available for LibraryTag";
+ }
+
+ void visitLiteral(Literal node) {
+ throw "No RAST available for Literal";
+ }
+
+ void visitLoop(Loop node) {
+ throw "No RAST available for Loop";
+ }
+
+ void visitMixinApplication(MixinApplication node) {
+ throw "No RAST available for MixinApplication";
+ }
+
+ void visitModifiers(Modifiers node) {
+ throw "No RAST available for Modifiers";
+ }
+
+ void visitNamedMixinApplication(NamedMixinApplication node) {
+ throw "No RAST available for NamedMixinApplication";
+ }
+
+ void visitNodeList(NodeList node) {
+ throw "No RAST available for NodeList";
+ }
+
+ void visitPart(Part node) {
+ throw "No RAST available for Part";
+ }
+
+ void visitPartOf(PartOf node) {
+ throw "No RAST available for PartOf";
+ }
+
+ void visitPostfix(Postfix node) {
+ throw "No RAST available for Postfix";
+ }
+
+ void visitPrefix(Prefix node) {
+ throw "No RAST available for Prefix";
+ }
+
+ void visitStatement(Statement node) {
+ throw "No RAST available for Statement";
+ }
+
+ void visitStringNode(StringNode node) {
+ throw "No RAST available for StringNode";
+ }
+
+ void visitStringInterpolationPart(StringInterpolationPart node) {
+ throw "No RAST available for StringInterpolationPart";
+ }
+
+ void visitTypedef(Typedef node) {
+ throw "No RAST available for Typedef";
+ }
+}
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_visitor.dart ('k') | pkg/compiler/lib/src/kernel/unresolved.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698