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

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

Issue 710343002: Check enums in switch cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix problem on redirecting factories. Created 6 years, 1 month 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
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 18 matching lines...) Expand all
29 R visitFieldParameterElement(InitializingFormalElement e) => 29 R visitFieldParameterElement(InitializingFormalElement e) =>
30 visitParameterElement(e); 30 visitParameterElement(e);
31 R visitAbstractFieldElement(AbstractFieldElement e) => visitElement(e); 31 R visitAbstractFieldElement(AbstractFieldElement e) => visitElement(e);
32 R visitFunctionElement(FunctionElement e) => visitElement(e); 32 R visitFunctionElement(FunctionElement e) => visitElement(e);
33 R visitConstructorBodyElement(ConstructorBodyElement e) => visitElement(e); 33 R visitConstructorBodyElement(ConstructorBodyElement e) => visitElement(e);
34 R visitClassElement(ClassElement e) => visitScopeContainerElement(e); 34 R visitClassElement(ClassElement e) => visitScopeContainerElement(e);
35 R visitTypeDeclarationElement(TypeDeclarationElement e) => visitElement(e); 35 R visitTypeDeclarationElement(TypeDeclarationElement e) => visitElement(e);
36 R visitMixinApplicationElement(MixinApplicationElement e) { 36 R visitMixinApplicationElement(MixinApplicationElement e) {
37 return visitClassElement(e); 37 return visitClassElement(e);
38 } 38 }
39 R visitEnumClassElement(EnumClassElement e) => visitClassElement(e);
39 R visitTypeVariableElement(TypeVariableElement e) => visitElement(e); 40 R visitTypeVariableElement(TypeVariableElement e) => visitElement(e);
40 R visitBoxFieldElement(BoxFieldElement e) => visitElement(e); 41 R visitBoxFieldElement(BoxFieldElement e) => visitElement(e);
41 R visitClosureClassElement(ClosureClassElement e) => visitClassElement(e); 42 R visitClosureClassElement(ClosureClassElement e) => visitClassElement(e);
42 R visitClosureFieldElement(ClosureFieldElement e) => visitVariableElement(e); 43 R visitClosureFieldElement(ClosureFieldElement e) => visitVariableElement(e);
43 } 44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698