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

Side by Side Diff: pkg/compiler/lib/src/elements/visitor.dart

Issue 1132783002: Add Accessor, Getter, and Setter elements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/library_loader.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library visitor; 5 library visitor;
6 6
7 import 'elements.dart'; 7 import 'elements.dart';
8 import '../closure.dart' 8 import '../closure.dart'
9 show BoxFieldElement, 9 show BoxFieldElement,
10 ClosureClassElement, 10 ClosureClassElement,
(...skipping 11 matching lines...) Expand all
22 R visitLibraryElement(LibraryElement e, A arg) => null; 22 R visitLibraryElement(LibraryElement e, A arg) => null;
23 R visitPrefixElement(PrefixElement e, A arg) => null; 23 R visitPrefixElement(PrefixElement e, A arg) => null;
24 R visitTypedefElement(TypedefElement e, A arg) => null; 24 R visitTypedefElement(TypedefElement e, A arg) => null;
25 R visitVariableElement(VariableElement e, A arg) => null; 25 R visitVariableElement(VariableElement e, A arg) => null;
26 R visitParameterElement(ParameterElement e, A arg) => null; 26 R visitParameterElement(ParameterElement e, A arg) => null;
27 R visitFormalElement(FormalElement e, A arg) => null; 27 R visitFormalElement(FormalElement e, A arg) => null;
28 R visitFieldElement(FieldElement e, A arg) => null; 28 R visitFieldElement(FieldElement e, A arg) => null;
29 R visitFieldParameterElement(InitializingFormalElement e, A arg) => null; 29 R visitFieldParameterElement(InitializingFormalElement e, A arg) => null;
30 R visitAbstractFieldElement(AbstractFieldElement e, A arg) => null; 30 R visitAbstractFieldElement(AbstractFieldElement e, A arg) => null;
31 R visitFunctionElement(FunctionElement e, A arg) => null; 31 R visitFunctionElement(FunctionElement e, A arg) => null;
32 R visitConstructorElement(ConstructorElement e, A arg) => null;
32 R visitConstructorBodyElement(ConstructorBodyElement e, A arg) => null; 33 R visitConstructorBodyElement(ConstructorBodyElement e, A arg) => null;
33 R visitClassElement(ClassElement e, A arg) => null; 34 R visitClassElement(ClassElement e, A arg) => null;
34 R visitMixinApplicationElement(MixinApplicationElement e, A arg) => null; 35 R visitMixinApplicationElement(MixinApplicationElement e, A arg) => null;
35 R visitEnumClassElement(EnumClassElement e, A arg) => null; 36 R visitEnumClassElement(EnumClassElement e, A arg) => null;
36 R visitTypeVariableElement(TypeVariableElement e, A arg) => null; 37 R visitTypeVariableElement(TypeVariableElement e, A arg) => null;
37 R visitBoxFieldElement(BoxFieldElement e, A arg) => null; 38 R visitBoxFieldElement(BoxFieldElement e, A arg) => null;
38 R visitClosureClassElement(ClosureClassElement e, A arg) => null; 39 R visitClosureClassElement(ClosureClassElement e, A arg) => null;
39 R visitClosureFieldElement(ClosureFieldElement e, A arg) => null; 40 R visitClosureFieldElement(ClosureFieldElement e, A arg) => null;
40 } 41 }
41 42
42 43
43 abstract class BaseElementVisitor<R, A> extends ElementVisitor<R, A> { 44 abstract class BaseElementVisitor<R, A> extends ElementVisitor<R, A> {
44 const BaseElementVisitor(); 45 const BaseElementVisitor();
45 46
46 R visitElement(Element e, A arg); 47 R visitElement(Element e, A arg);
47 48
48 @override 49 @override
49 R visitErroneousElement(ErroneousElement e, A arg) { 50 R visitErroneousElement(ErroneousElement e, A arg) {
50 return visitFunctionElement(e, arg); 51 return visitElement(e, arg);
51 } 52 }
52 53
53 @override 54 @override
54 R visitWarnOnUseElement(WarnOnUseElement e, A arg) { 55 R visitWarnOnUseElement(WarnOnUseElement e, A arg) {
55 return visitElement(e, arg); 56 return visitElement(e, arg);
56 } 57 }
57 58
58 @override 59 @override
59 R visitAmbiguousElement(AmbiguousElement e, A arg) { 60 R visitAmbiguousElement(AmbiguousElement e, A arg) {
60 return visitElement(e, arg); 61 return visitElement(e, arg);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 R visitAbstractFieldElement(AbstractFieldElement e, A arg) { 114 R visitAbstractFieldElement(AbstractFieldElement e, A arg) {
114 return visitElement(e, arg); 115 return visitElement(e, arg);
115 } 116 }
116 117
117 @override 118 @override
118 R visitFunctionElement(FunctionElement e, A arg) { 119 R visitFunctionElement(FunctionElement e, A arg) {
119 return visitElement(e, arg); 120 return visitElement(e, arg);
120 } 121 }
121 122
122 @override 123 @override
124 R visitConstructorElement(ConstructorElement e, A arg) {
125 return visitFunctionElement(e, arg);
126 }
127
128 @override
123 R visitConstructorBodyElement(ConstructorBodyElement e, A arg) { 129 R visitConstructorBodyElement(ConstructorBodyElement e, A arg) {
124 return visitElement(e, arg); 130 return visitElement(e, arg);
125 } 131 }
126 132
127 @override 133 @override
128 R visitClassElement(ClassElement e, A arg) { 134 R visitClassElement(ClassElement e, A arg) {
129 return visitScopeContainerElement(e, arg); 135 return visitScopeContainerElement(e, arg);
130 } 136 }
131 137
132 R visitTypeDeclarationElement(TypeDeclarationElement e, A arg) { 138 R visitTypeDeclarationElement(TypeDeclarationElement e, A arg) {
(...skipping 23 matching lines...) Expand all
156 @override 162 @override
157 R visitClosureClassElement(ClosureClassElement e, A arg) { 163 R visitClosureClassElement(ClosureClassElement e, A arg) {
158 return visitClassElement(e, arg); 164 return visitClassElement(e, arg);
159 } 165 }
160 166
161 @override 167 @override
162 R visitClosureFieldElement(ClosureFieldElement e, A arg) { 168 R visitClosureFieldElement(ClosureFieldElement e, A arg) {
163 return visitVariableElement(e, arg); 169 return visitVariableElement(e, arg);
164 } 170 }
165 } 171 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/modelx.dart ('k') | pkg/compiler/lib/src/library_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698