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

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

Issue 2567133002: Add support for the new function-type syntax. (Closed)
Patch Set: Fixes after rebase. Created 3 years, 10 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 '../constants/constructors.dart'; 9 import '../constants/constructors.dart';
10 import '../constants/expressions.dart'; 10 import '../constants/expressions.dart';
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 implements FunctionTypedElement, TypedElement, AstElement { 1201 implements FunctionTypedElement, TypedElement, AstElement {
1202 /// Use [functionDeclaration] instead. 1202 /// Use [functionDeclaration] instead.
1203 @deprecated 1203 @deprecated
1204 get enclosingElement; 1204 get enclosingElement;
1205 1205
1206 /// The function, typedef or inline function-typed parameter on which 1206 /// The function, typedef or inline function-typed parameter on which
1207 /// this parameter is declared. 1207 /// this parameter is declared.
1208 FunctionTypedElement get functionDeclaration; 1208 FunctionTypedElement get functionDeclaration;
1209 1209
1210 VariableDefinitions get node; 1210 VariableDefinitions get node;
1211
1212 /// Whether the parameter is unnamed in a function type.
1213 bool get isUnnamed;
1211 } 1214 }
1212 1215
1213 /// A formal parameter of a function or constructor. 1216 /// A formal parameter of a function or constructor.
1214 /// 1217 ///
1215 /// Normal parameter that introduce a local variable are modeled by 1218 /// Normal parameter that introduce a local variable are modeled by
1216 /// [LocalParameterElement] whereas initializing formals, that is parameter of 1219 /// [LocalParameterElement] whereas initializing formals, that is parameter of
1217 /// the form `this.x`, are modeled by [InitializingFormalElement]. 1220 /// the form `this.x`, are modeled by [InitializingFormalElement].
1218 abstract class ParameterElement extends Element 1221 abstract class ParameterElement extends Element
1219 implements VariableElement, FormalElement, LocalElement { 1222 implements VariableElement, FormalElement, LocalElement {
1220 /// Use [functionDeclaration] instead. 1223 /// Use [functionDeclaration] instead.
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 /// by a field. 2017 /// by a field.
2015 bool get isDeclaredByField; 2018 bool get isDeclaredByField;
2016 2019
2017 /// Returns `true` if this member is abstract. 2020 /// Returns `true` if this member is abstract.
2018 bool get isAbstract; 2021 bool get isAbstract;
2019 2022
2020 /// If abstract, [implementation] points to the overridden concrete member, 2023 /// If abstract, [implementation] points to the overridden concrete member,
2021 /// if any. Otherwise [implementation] points to the member itself. 2024 /// if any. Otherwise [implementation] points to the member itself.
2022 Member get implementation; 2025 Member get implementation;
2023 } 2026 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698