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

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

Issue 2132383002: Renamed isParameter to isRegularParameter. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Review response Created 4 years, 5 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) 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 elements; 5 library elements;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/resolution.dart' show Resolution; 8 import '../common/resolution.dart' show Resolution;
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../constants/constructors.dart'; 10 import '../constants/constructors.dart';
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 /// `true` if this element is a local variable. 247 /// `true` if this element is a local variable.
248 bool get isVariable; 248 bool get isVariable;
249 249
250 /// `true` if this element is a top level variable, static or instance field. 250 /// `true` if this element is a top level variable, static or instance field.
251 bool get isField; 251 bool get isField;
252 252
253 /// `true` if this element is the abstract field implicitly defined by an 253 /// `true` if this element is the abstract field implicitly defined by an
254 /// explicit getter and/or setter. 254 /// explicit getter and/or setter.
255 bool get isAbstractField; 255 bool get isAbstractField;
256 256
257 /// `true` if this element is formal parameter either from a constructor, 257 /// `true` if this element is a formal parameter from a constructor,
258 /// method, or typedef declaration or from an inlined function typed 258 /// a method, a typedef declaration, or from an inlined function typed
259 /// parameter. 259 /// parameter.
260 /// 260 ///
261 /// This property is `false` if this element is an initializing formal. 261 /// This property is `false` if this element is an initializing formal.
262 /// See [isInitializingFormal]. 262 /// See [isInitializingFormal].
263 bool get isParameter; 263 bool get isRegularParameter;
264 264
265 /// `true` if this element is an initializing formal of constructor, that 265 /// `true` if this element is an initializing formal of constructor, that
266 /// is a formal of the form `this.foo`. 266 /// is a formal of the form `this.foo`.
267 bool get isInitializingFormal; 267 bool get isInitializingFormal;
268 268
269 /// `true` if this element is a formal parameter, either regular or
270 /// initializing.
271 bool get isParameter => isRegularParameter || isInitializingFormal;
272
269 /// `true` if this element represents a resolution error. 273 /// `true` if this element represents a resolution error.
270 bool get isError; 274 bool get isError;
271 275
272 /// `true` if this element represents an ambiguous name. 276 /// `true` if this element represents an ambiguous name.
273 /// 277 ///
274 /// Ambiguous names occur when two imports/exports contain different entities 278 /// Ambiguous names occur when two imports/exports contain different entities
275 /// by the same name. If an ambiguous name is resolved an warning or error 279 /// by the same name. If an ambiguous name is resolved an warning or error
276 /// is produced. 280 /// is produced.
277 bool get isAmbiguous; 281 bool get isAmbiguous;
278 282
(...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 /// by a field. 1854 /// by a field.
1851 bool get isDeclaredByField; 1855 bool get isDeclaredByField;
1852 1856
1853 /// Returns `true` if this member is abstract. 1857 /// Returns `true` if this member is abstract.
1854 bool get isAbstract; 1858 bool get isAbstract;
1855 1859
1856 /// If abstract, [implementation] points to the overridden concrete member, 1860 /// If abstract, [implementation] points to the overridden concrete member,
1857 /// if any. Otherwise [implementation] points to the member itself. 1861 /// if any. Otherwise [implementation] points to the member itself.
1858 Member get implementation; 1862 Member get implementation;
1859 } 1863 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/common.dart ('k') | pkg/compiler/lib/src/inferrer/node_tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698