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

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

Issue 2810683002: Use entities in Selector methods (Closed)
Patch Set: Created 3 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
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/ssa/builder.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) 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 '../common.dart'; 7 import '../common.dart';
8 8
9 /// Abstract interface for entities. 9 /// Abstract interface for entities.
10 /// 10 ///
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 /// Whether this is a normal method (neither constructor, getter or setter) 79 /// Whether this is a normal method (neither constructor, getter or setter)
80 /// or operator method. 80 /// or operator method.
81 bool get isFunction; 81 bool get isFunction;
82 82
83 /// Whether this is a getter. 83 /// Whether this is a getter.
84 bool get isGetter; 84 bool get isGetter;
85 85
86 /// Whether this is a setter. 86 /// Whether this is a setter.
87 bool get isSetter; 87 bool get isSetter;
88 88
89 /// Whether this member is assignable, i.e. a non-final field. 89 /// Whether this member is assignable, i.e. a non-final, non-const field.
90 bool get isAssignable; 90 bool get isAssignable;
91 91
92 /// Whether this member is constant, i.e. a constant field or constructor. 92 /// Whether this member is constant, i.e. a constant field or constructor.
93 bool get isConst; 93 bool get isConst;
94 94
95 /// Whether this member is abstract, i.e. an abstract method, getter or 95 /// Whether this member is abstract, i.e. an abstract method, getter or
96 /// setter. 96 /// setter.
97 bool get isAbstract; 97 bool get isAbstract;
98 98
99 /// The enclosing class if this is a constructor, instance member or 99 /// The enclosing class if this is a constructor, instance member or
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 this.requiredParameters, this.positionalParameters, this.namedParameters); 177 this.requiredParameters, this.positionalParameters, this.namedParameters);
178 178
179 const ParameterStructure.getter() : this(0, 0, const <String>[]); 179 const ParameterStructure.getter() : this(0, 0, const <String>[]);
180 180
181 const ParameterStructure.setter() : this(1, 1, const <String>[]); 181 const ParameterStructure.setter() : this(1, 1, const <String>[]);
182 182
183 /// The number of optional parameters (positional or named). 183 /// The number of optional parameters (positional or named).
184 int get optionalParameters => 184 int get optionalParameters =>
185 positionalParameters - requiredParameters + namedParameters.length; 185 positionalParameters - requiredParameters + namedParameters.length;
186 } 186 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698