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

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

Issue 2996723002: Support typedef type literals (Closed)
Patch Set: Cleanup Created 3 years, 4 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 entities; 5 library entities;
6 6
7 import 'package:front_end/src/fasta/parser/async_modifier.dart' 7 import 'package:front_end/src/fasta/parser/async_modifier.dart'
8 show AsyncModifier; 8 show AsyncModifier;
9 9
10 import '../common.dart'; 10 import '../common.dart';
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 /// Whether this is a synthesized class for a closurized method or local 46 /// Whether this is a synthesized class for a closurized method or local
47 /// function. 47 /// function.
48 bool get isClosure; 48 bool get isClosure;
49 49
50 /// Whether this is an abstract class. 50 /// Whether this is an abstract class.
51 bool get isAbstract; 51 bool get isAbstract;
52 } 52 }
53 53
54 abstract class TypedefEntity extends Entity { 54 abstract class TypedefEntity extends Entity {
55 /// The library in which the library was declared.
Siggi Cherem (dart-lang) 2017/08/09 16:38:06 => in which the *typedef*
Johnni Winther 2017/08/10 08:18:34 Done.
55 LibraryEntity get library; 56 LibraryEntity get library;
56 } 57 }
57 58
58 abstract class TypeVariableEntity extends Entity { 59 abstract class TypeVariableEntity extends Entity {
59 /// The class or generic method that declared this type variable. 60 /// The class or generic method that declared this type variable.
60 Entity get typeDeclaration; 61 Entity get typeDeclaration;
61 62
62 /// The index of this type variable in the type variables of its 63 /// The index of this type variable in the type variables of its
63 /// [typeDeclaration]. 64 /// [typeDeclaration].
64 int get index; 65 int get index;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 /// The total number of parameters (required or optional). 273 /// The total number of parameters (required or optional).
273 int get totalParameters => positionalParameters + namedParameters.length; 274 int get totalParameters => positionalParameters + namedParameters.length;
274 275
275 /// Returns the [CallStructure] corresponding to a call site passing all 276 /// Returns the [CallStructure] corresponding to a call site passing all
276 /// parameters both required and optional. 277 /// parameters both required and optional.
277 CallStructure get callStructure { 278 CallStructure get callStructure {
278 return new CallStructure( 279 return new CallStructure(
279 positionalParameters + namedParameters.length, namedParameters); 280 positionalParameters + namedParameters.length, namedParameters);
280 } 281 }
281 } 282 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698