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

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

Issue 2663903002: Store exceptions with transitive files context into ByteStore. (Closed)
Patch Set: 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) 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 the context of an exception in analysis driver.
62 */
63 @TopLevel('ADEC')
64 abstract class AnalysisDriverExceptionContext extends base.SummaryClass {
65 factory AnalysisDriverExceptionContext.fromBuffer(List<int> buffer) =>
66 generated.readAnalysisDriverExceptionContext(buffer);
67
68 /**
69 * The exception string.
70 */
71 @Id(1)
72 String get exception;
73
74 /**
75 * The state of files when the exception happened.
76 */
77 @Id(3)
78 List<AnalysisDriverExceptionFile> get files;
79
80 /**
81 * The path of the file being analyzed when the exception happened.
82 */
83 @Id(0)
84 String get path;
85
86 /**
87 * The exception stack trace string.
88 */
89 @Id(2)
90 String get stackTrace;
91 }
92
93 /**
94 * Information about a single file in [AnalysisDriverExceptionContext].
95 */
96 abstract class AnalysisDriverExceptionFile extends base.SummaryClass {
97 /**
98 * The content of the file.
99 */
100 @Id(1)
101 String get content;
102
103 /**
104 * The path of the file.
105 */
106 @Id(0)
107 String get path;
108 }
109
110 /**
61 * Information about a resolved unit. 111 * Information about a resolved unit.
62 */ 112 */
63 @TopLevel('ADRU') 113 @TopLevel('ADRU')
64 abstract class AnalysisDriverResolvedUnit extends base.SummaryClass { 114 abstract class AnalysisDriverResolvedUnit extends base.SummaryClass {
65 factory AnalysisDriverResolvedUnit.fromBuffer(List<int> buffer) => 115 factory AnalysisDriverResolvedUnit.fromBuffer(List<int> buffer) =>
66 generated.readAnalysisDriverResolvedUnit(buffer); 116 generated.readAnalysisDriverResolvedUnit(buffer);
67 117
68 /** 118 /**
69 * The full list of analysis errors, both syntactic and semantic. 119 * The full list of analysis errors, both syntactic and semantic.
70 */ 120 */
(...skipping 3065 matching lines...) Expand 10 before | Expand all | Expand 10 after
3136 @Id(11) 3186 @Id(11)
3137 int get visibleLength; 3187 int get visibleLength;
3138 3188
3139 /** 3189 /**
3140 * If a local variable, the beginning of the visible range; zero otherwise. 3190 * If a local variable, the beginning of the visible range; zero otherwise.
3141 */ 3191 */
3142 @informative 3192 @informative
3143 @Id(12) 3193 @Id(12)
3144 int get visibleOffset; 3194 int get visibleOffset;
3145 } 3195 }
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