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

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

Issue 2972233002: Don't summarize labels, remove resynthesis code for labels. (Closed)
Patch Set: Created 3 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) 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 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1786 /** 1786 /**
1787 * The list of local functions. 1787 * The list of local functions.
1788 */ 1788 */
1789 @Id(18) 1789 @Id(18)
1790 List<UnlinkedExecutable> get localFunctions; 1790 List<UnlinkedExecutable> get localFunctions;
1791 1791
1792 /** 1792 /**
1793 * The list of local labels. 1793 * The list of local labels.
1794 */ 1794 */
1795 @informative 1795 @informative
1796 @deprecated
1796 @Id(22) 1797 @Id(22)
1797 List<UnlinkedLabel> get localLabels; 1798 List<String> get localLabels;
1798 1799
1799 /** 1800 /**
1800 * The list of local variables. 1801 * The list of local variables.
1801 */ 1802 */
1802 @informative 1803 @informative
1803 @deprecated 1804 @deprecated
1804 @Id(19) 1805 @Id(19)
1805 List<UnlinkedVariable> get localVariables; 1806 List<UnlinkedVariable> get localVariables;
1806 1807
1807 /** 1808 /**
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
2692 /** 2693 /**
2693 * Offset of the URI string (including quotes) relative to the beginning of 2694 * Offset of the URI string (including quotes) relative to the beginning of
2694 * the file. If [isImplicit] is true, zero. 2695 * the file. If [isImplicit] is true, zero.
2695 */ 2696 */
2696 @informative 2697 @informative
2697 @Id(3) 2698 @Id(3)
2698 int get uriOffset; 2699 int get uriOffset;
2699 } 2700 }
2700 2701
2701 /** 2702 /**
2702 * Unlinked summary information about a label.
2703 */
2704 abstract class UnlinkedLabel extends base.SummaryClass {
2705 /**
2706 * Return `true` if this label is associated with a `switch` member (`case` or
2707 * `default`).
2708 */
2709 @Id(2)
2710 bool get isOnSwitchMember;
2711
2712 /**
2713 * Return `true` if this label is associated with a `switch` statement.
2714 */
2715 @Id(3)
2716 bool get isOnSwitchStatement;
2717
2718 /**
2719 * Name of the label.
2720 */
2721 @Id(0)
2722 String get name;
2723
2724 /**
2725 * Offset of the label relative to the beginning of the file.
2726 */
2727 @informative
2728 @Id(1)
2729 int get nameOffset;
2730 }
2731
2732 /**
2733 * Unlinked summary information about a function parameter. 2703 * Unlinked summary information about a function parameter.
2734 */ 2704 */
2735 abstract class UnlinkedParam extends base.SummaryClass { 2705 abstract class UnlinkedParam extends base.SummaryClass {
2736 /** 2706 /**
2737 * Annotations for this parameter. 2707 * Annotations for this parameter.
2738 */ 2708 */
2739 @Id(9) 2709 @Id(9)
2740 List<UnlinkedExpr> get annotations; 2710 List<UnlinkedExpr> get annotations;
2741 2711
2742 /** 2712 /**
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
3382 @Id(11) 3352 @Id(11)
3383 int get visibleLength; 3353 int get visibleLength;
3384 3354
3385 /** 3355 /**
3386 * If a local variable, the beginning of the visible range; zero otherwise. 3356 * If a local variable, the beginning of the visible range; zero otherwise.
3387 */ 3357 */
3388 @informative 3358 @informative
3389 @Id(12) 3359 @Id(12)
3390 int get visibleOffset; 3360 int get visibleOffset;
3391 } 3361 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/summarize_ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698