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

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

Issue 1076793005: Fine-grain field, getter, setter, and function access in IrBuilder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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
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 part of analyzer2dart.element_converter; 5 part of analyzer2dart.element_converter;
6 6
7 7
8 /// Base [dart2js.Element] implementation for converted analyzer elements. 8 /// Base [dart2js.Element] implementation for converted analyzer elements.
9 class ElementY extends dart2js.Element { 9 class ElementY extends dart2js.Element {
10 final ElementConverter converter; 10 final ElementConverter converter;
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 } 374 }
375 375
376 @override 376 @override
377 dart2js.FunctionType get type => converter.convertType(element.type); 377 dart2js.FunctionType get type => converter.convertType(element.type);
378 } 378 }
379 379
380 class TopLevelFunctionElementY extends ElementY 380 class TopLevelFunctionElementY extends ElementY
381 with AnalyzableElementY, 381 with AnalyzableElementY,
382 AstElementY, 382 AstElementY,
383 TopLevelElementMixin, 383 TopLevelElementMixin,
384 FunctionElementMixin 384 FunctionElementMixin,
385 implements dart2js.FunctionElement { 385 MemberElementMixin
386 implements dart2js.MethodElement {
386 analyzer.FunctionElement get element => super.element; 387 analyzer.FunctionElement get element => super.element;
387 388
388 @override 389 @override
389 dart2js.ElementKind get kind => dart2js.ElementKind.FUNCTION; 390 dart2js.ElementKind get kind => dart2js.ElementKind.FUNCTION;
390 391
391 TopLevelFunctionElementY(ElementConverter converter, 392 TopLevelFunctionElementY(ElementConverter converter,
392 analyzer.FunctionElement element) 393 analyzer.FunctionElement element)
393 : super(converter, element); 394 : super(converter, element);
395
396 @override
397 get nestedClosures => unsupported('nestedClosures');
394 } 398 }
395 399
396 class LocalFunctionElementY extends ElementY 400 class LocalFunctionElementY extends ElementY
397 with AnalyzableElementY, 401 with AnalyzableElementY,
398 AstElementY, 402 AstElementY,
399 LocalElementMixin, 403 LocalElementMixin,
400 FunctionElementMixin 404 FunctionElementMixin
401 implements dart2js.LocalFunctionElement { 405 implements dart2js.LocalFunctionElement {
402 analyzer.FunctionElement get element => super.element; 406 analyzer.FunctionElement get element => super.element;
403 407
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 analyzer.MethodElement element) 892 analyzer.MethodElement element)
889 : super(converter, element); 893 : super(converter, element);
890 894
891 @override 895 @override
892 get nestedClosures => unsupported('nestedClosures'); 896 get nestedClosures => unsupported('nestedClosures');
893 } 897 }
894 898
895 abstract class MemberElementMixin implements dart2js.MemberElement { 899 abstract class MemberElementMixin implements dart2js.MemberElement {
896 dart2js.Name get memberName => new dart2js.Name(name, library); 900 dart2js.Name get memberName => new dart2js.Name(name, library);
897 } 901 }
OLDNEW
« no previous file with comments | « pkg/analyzer2dart/lib/src/cps_generator.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698