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

Side by Side Diff: pkg/analyzer2dart/lib/src/semantic_visitor.dart

Issue 712313004: Fix AccessSemantics for function typedefs and "dynamic". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 analyzer2dart.semantic_visitor; 5 library analyzer2dart.semantic_visitor;
6 6
7 import 'package:analyzer/analyzer.dart'; 7 import 'package:analyzer/analyzer.dart';
8 import 'package:analyzer/src/generated/source.dart'; 8 import 'package:analyzer/src/generated/source.dart';
9 9
10 import 'util.dart'; 10 import 'util.dart';
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 case AccessKind.LOCAL_VARIABLE: 181 case AccessKind.LOCAL_VARIABLE:
182 return visitLocalVariableAccess(node, semantics); 182 return visitLocalVariableAccess(node, semantics);
183 case AccessKind.PARAMETER: 183 case AccessKind.PARAMETER:
184 return visitParameterAccess(node, semantics); 184 return visitParameterAccess(node, semantics);
185 case AccessKind.STATIC_FIELD: 185 case AccessKind.STATIC_FIELD:
186 return visitStaticFieldAccess(node, semantics); 186 return visitStaticFieldAccess(node, semantics);
187 case AccessKind.STATIC_METHOD: 187 case AccessKind.STATIC_METHOD:
188 return visitStaticMethodAccess(node, semantics); 188 return visitStaticMethodAccess(node, semantics);
189 case AccessKind.STATIC_PROPERTY: 189 case AccessKind.STATIC_PROPERTY:
190 return visitStaticPropertyAccess(node, semantics); 190 return visitStaticPropertyAccess(node, semantics);
191 case AccessKind.TOPLEVEL_CLASS: 191 case AccessKind.TOPLEVEL_TYPE:
192 return visitToplevelClassAccess(node, semantics); 192 return visitToplevelClassAccess(node, semantics);
193 case AccessKind.TYPE_PARAMETER: 193 case AccessKind.TYPE_PARAMETER:
194 return visitTypeParameterAccess(node, semantics); 194 return visitTypeParameterAccess(node, semantics);
195 default: 195 default:
196 // Unexpected access kind. 196 // Unexpected access kind.
197 return giveUp(node, 197 return giveUp(node,
198 'Unexpected ${semantics} in _handlePropertyAccess.'); 198 'Unexpected ${semantics} in _handlePropertyAccess.');
199 } 199 }
200 } 200 }
201 201
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 case AccessKind.STATIC_PROPERTY: 262 case AccessKind.STATIC_PROPERTY:
263 return visitStaticPropertyAssignment(node, semantics); 263 return visitStaticPropertyAssignment(node, semantics);
264 default: 264 default:
265 // Unexpected access kind. 265 // Unexpected access kind.
266 return giveUp(node, 266 return giveUp(node,
267 'Unexpected ${semantics} in _handlePropertyAccess.'); 267 'Unexpected ${semantics} in _handlePropertyAccess.');
268 } 268 }
269 } 269 }
270 } 270 }
271 } 271 }
OLDNEW
« no previous file with comments | « pkg/analyzer2dart/lib/src/identifier_semantics.dart ('k') | pkg/analyzer2dart/test/identifier_semantics_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698