OLD | NEW |
| (Empty) |
1 // Copyright (c) 2015, the Dartino 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 import 'node.dart' show | |
6 Node, | |
7 NodeVisitor; | |
8 | |
9 import 'errors.dart' show | |
10 InternalCompilerError; | |
11 | |
12 import 'package:compiler/src/tokens/token.dart' show | |
13 Token; | |
14 | |
15 // Marker nodes. | |
16 abstract class MarkerNode extends Node { | |
17 Token token; | |
18 | |
19 MarkerNode(this.token); | |
20 | |
21 void accept(NodeVisitor visitor) { | |
22 throw new InternalCompilerError("MarkerNode visited"); | |
23 } | |
24 } | |
25 | |
26 class BeginFunctionMarker extends MarkerNode { | |
27 BeginFunctionMarker(Token token) | |
28 : super(token); | |
29 } | |
30 | |
31 class BeginFieldMarker extends MarkerNode { | |
32 BeginFieldMarker(Token token) | |
33 : super(token); | |
34 } | |
35 | |
36 class BeginFormalMarker extends MarkerNode { | |
37 BeginFormalMarker(Token token) | |
38 : super(token); | |
39 } | |
40 | |
41 class BeginServiceMarker extends MarkerNode { | |
42 BeginServiceMarker(Token token) | |
43 : super(token); | |
44 } | |
45 | |
46 class BeginStructMarker extends MarkerNode { | |
47 BeginStructMarker(Token token) | |
48 : super(token); | |
49 } | |
50 | |
51 class BeginTypeMarker extends MarkerNode { | |
52 BeginTypeMarker(Token token) | |
53 : super(token); | |
54 } | |
55 | |
56 class BeginUnionMarker extends MarkerNode { | |
57 BeginUnionMarker(Token token) | |
58 : super(token); | |
59 } | |
OLD | NEW |