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

Side by Side Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 1714113002: Add summary support for ParameterElement.defaultValueCode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /** 5 /**
6 * This file is an "idl" style description of the summary format. It 6 * This file is an "idl" style description of the summary format. It
7 * contains abstract classes which declare the interface for reading data from 7 * contains abstract classes which declare the interface for reading data from
8 * summaries. It is parsed and transformed into code that implements the 8 * summaries. It is parsed and transformed into code that implements the
9 * summary format. 9 * summary format.
10 * 10 *
(...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 String get name; 1475 String get name;
1476 1476
1477 /** 1477 /**
1478 * Offset of the parameter name relative to the beginning of the file. 1478 * Offset of the parameter name relative to the beginning of the file.
1479 */ 1479 */
1480 @informative 1480 @informative
1481 @Id(1) 1481 @Id(1)
1482 int get nameOffset; 1482 int get nameOffset;
1483 1483
1484 /** 1484 /**
1485 * If the parameter has a default value, the source text of the constant
1486 * expression in the default value. Otherwise the empty string.
1487 */
1488 @informative
1489 @Id(13)
1490 String get defaultValueCode;
1491
1492 /**
1485 * If [isFunctionTyped] is `true`, the parameters of the function type. 1493 * If [isFunctionTyped] is `true`, the parameters of the function type.
1486 */ 1494 */
1487 @Id(8) 1495 @Id(8)
1488 List<UnlinkedParam> get parameters; 1496 List<UnlinkedParam> get parameters;
1489 1497
1490 /** 1498 /**
1491 * If [isFunctionTyped] is `true`, the declared return type. If 1499 * If [isFunctionTyped] is `true`, the declared return type. If
1492 * [isFunctionTyped] is `false`, the declared type. Absent if the type is 1500 * [isFunctionTyped] is `false`, the declared type. Absent if the type is
1493 * implicit. 1501 * implicit.
1494 */ 1502 */
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 */ 1952 */
1945 @Id(11) 1953 @Id(11)
1946 int get visibleLength; 1954 int get visibleLength;
1947 1955
1948 /** 1956 /**
1949 * If a local variable, the beginning of the visible range; zero otherwise. 1957 * If a local variable, the beginning of the visible range; zero otherwise.
1950 */ 1958 */
1951 @Id(12) 1959 @Id(12)
1952 int get visibleOffset; 1960 int get visibleOffset;
1953 } 1961 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.dart ('k') | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698