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

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

Issue 2455573003: Put fully resolved analysis results (just errors now) into the byte cache. (Closed)
Patch Set: tweaks Created 4 years, 1 month 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 * Annotation describing information which is not part of Dart semantics; in 51 * Annotation describing information which is not part of Dart semantics; in
52 * other words, if this information (or any information it refers to) changes, 52 * other words, if this information (or any information it refers to) changes,
53 * static analysis and runtime behavior of the library are unaffected. 53 * static analysis and runtime behavior of the library are unaffected.
54 * 54 *
55 * Information that has purely local effect (in other words, it does not affect 55 * Information that has purely local effect (in other words, it does not affect
56 * the API of the code being analyzed) is also marked as `informative`. 56 * the API of the code being analyzed) is also marked as `informative`.
57 */ 57 */
58 const informative = null; 58 const informative = null;
59 59
60 /** 60 /**
61 * Information about a resolved unit.
62 */
63 @TopLevel('ADRU')
64 abstract class AnalysisDriverResolvedUnit extends base.SummaryClass {
65 factory AnalysisDriverResolvedUnit.fromBuffer(List<int> buffer) =>
66 generated.readAnalysisDriverResolvedUnit(buffer);
67
68 /**
69 * The full list of analysis errors, both syntactic and semantic.
70 */
71 @Id(0)
72 List<AnalysisDriverUnitError> get errors;
73 }
74
75 /**
76 * Information about an error in a resolved unit.
77 */
78 abstract class AnalysisDriverUnitError extends base.SummaryClass {
79 /**
80 * The optional correction hint for the error.
81 */
82 @Id(4)
83 String get correction;
84
85 /**
86 * The length of the error in the file.
87 */
88 @Id(1)
89 int get length;
90
91 /**
92 * The message of the error.
93 */
94 @Id(3)
95 String get message;
96
97 /**
98 * The offset from the beginning of the file.
99 */
100 @Id(0)
101 int get offset;
102
103 /**
104 * The unique name of the error code.
105 */
106 @Id(2)
107 String get uniqueName;
108 }
109
110 /**
61 * Information about an element code range. 111 * Information about an element code range.
62 */ 112 */
63 abstract class CodeRange extends base.SummaryClass { 113 abstract class CodeRange extends base.SummaryClass {
64 /** 114 /**
65 * Length of the element code. 115 * Length of the element code.
66 */ 116 */
67 @Id(1) 117 @Id(1)
68 int get length; 118 int get length;
69 119
70 /** 120 /**
(...skipping 2753 matching lines...) Expand 10 before | Expand all | Expand 10 after
2824 @Id(11) 2874 @Id(11)
2825 int get visibleLength; 2875 int get visibleLength;
2826 2876
2827 /** 2877 /**
2828 * If a local variable, the beginning of the visible range; zero otherwise. 2878 * If a local variable, the beginning of the visible range; zero otherwise.
2829 */ 2879 */
2830 @informative 2880 @informative
2831 @Id(12) 2881 @Id(12)
2832 int get visibleOffset; 2882 int get visibleOffset;
2833 } 2883 }
OLDNEW
« pkg/analyzer/lib/src/dart/analysis/driver.dart ('K') | « pkg/analyzer/lib/src/summary/format.fbs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698