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

Side by Side Diff: packages/dart_style/test/regression/other/analysis_server.unit

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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
(Empty)
1 >>> (indent 2)
2 main() {
3 List<Future<List<LocationImpl>>> nodeFutures =
4 <Future<List<LocationImpl>>>[];
5 }
6 <<<
7 main() {
8 List<Future<List<LocationImpl>>> nodeFutures =
9 <Future<List<LocationImpl>>>[];
10 }
11 >>>
12 class CachingPubPackageMapProvider {
13 CachingPubPackageMapProvider(ResourceProvider resourceProvider,
14 DirectoryBasedDartSdk sdk, [RunPubList runPubList, this._writeFile])
15 : super(resourceProvider, sdk, runPubList) {
16 ;
17 }
18 }
19 <<<
20 class CachingPubPackageMapProvider {
21 CachingPubPackageMapProvider(
22 ResourceProvider resourceProvider, DirectoryBasedDartSdk sdk,
23 [RunPubList runPubList, this._writeFile])
24 : super(resourceProvider, sdk, runPubList) {
25 ;
26 }
27 }
28 >>>
29 class Foo {
30 bool selectionIncludesNonWhitespaceOutsideNode(SourceRange selection,
31 AstNode node) => _selectionIncludesNonWhitespaceOutsideRange(
32 selection, SourceRangeFactory.rangeNode(node));
33 }
34 <<<
35 class Foo {
36 bool selectionIncludesNonWhitespaceOutsideNode(
37 SourceRange selection, AstNode node) =>
38 _selectionIncludesNonWhitespaceOutsideRange(
39 selection, SourceRangeFactory.rangeNode(node));
40 }
41 >>> (indent 2)
42 void _writeCompletionPerformanceList(StringBuffer buffer) {
43 buffer.write('''
44 <p><strong>First (ms)</strong> - the number of milliseconds
45 from when completion received the request until the first notification
46 with completion results was queued for sending back to the client.
47 <p><strong>Complete (ms)</strong> - the number of milliseconds
48 from when completion received the request until the final notification
49 with completion results was queued for sending back to the client.
50 <p><strong># Notifications</strong> - the total number of notifications
51 sent to the client with completion results for this request.
52 <p><strong># Suggestions</strong> - the number of suggestions
53 sent to the client in the first notification, followed by a comma,
54 followed by the number of suggestions send to the client
55 in the last notification. If there is only one notification,
56 then there will be only one number in this column.''');
57 }
58 <<<
59 void _writeCompletionPerformanceList(StringBuffer buffer) {
60 buffer.write('''
61 <p><strong>First (ms)</strong> - the number of milliseconds
62 from when completion received the request until the first notification
63 with completion results was queued for sending back to the client.
64 <p><strong>Complete (ms)</strong> - the number of milliseconds
65 from when completion received the request until the final notification
66 with completion results was queued for sending back to the client.
67 <p><strong># Notifications</strong> - the total number of notifications
68 sent to the client with completion results for this request.
69 <p><strong># Suggestions</strong> - the number of suggestions
70 sent to the client in the first notification, followed by a comma,
71 followed by the number of suggestions send to the client
72 in the last notification. If there is only one notification,
73 then there will be only one number in this column.''');
74 }
75 >>>
76 final ListResultDescriptor<AnalysisError> HINTS =
77 new ListResultDescriptor<AnalysisError>(
78 'HINT_ERRORS', AnalysisError.NO_ERRORS);
79 <<<
80 final ListResultDescriptor<AnalysisError> HINTS =
81 new ListResultDescriptor<AnalysisError>(
82 'HINT_ERRORS', AnalysisError.NO_ERRORS);
83 >>> (indent 2)
84 makeMatcher() {
85 docComment(toHtmlVisitor.collectHtml(() {
86 toHtmlVisitor.p(() {
87 toHtmlVisitor.write(context);
88 });
89 }));
90 }
91 <<<
92 makeMatcher() {
93 docComment(toHtmlVisitor.collectHtml(() {
94 toHtmlVisitor.p(() {
95 toHtmlVisitor.write(context);
96 });
97 }));
98 }
99 >>> (indent 6)
100 main() {
101 files = jsonDecoder._decodeMap(jsonPath + ".files", json["files"],
102 valueDecoder: (String jsonPath, Object json) =>
103 jsonDecoder._decodeUnion(
104 jsonPath,
105 json,
106 "type",
107 {
108 "add": (String jsonPath, Object json) =>
109 new AddContentOverlay.fromJson(jsonDecoder, jsonPath, json),
110 "change": (String jsonPath, Object json) =>
111 new ChangeContentOverlay.fromJson(
112 jsonDecoder, jsonPath, json),
113 "remove": (String jsonPath, Object json) =>
114 new RemoveContentOverlay.fromJson(jsonDecoder, jsonPath, json)
115 }));
116 }
117 <<<
118 main() {
119 files = jsonDecoder._decodeMap(jsonPath + ".files", json["files"],
120 valueDecoder: (String jsonPath, Object json) =>
121 jsonDecoder._decodeUnion(jsonPath, json, "type", {
122 "add": (String jsonPath, Object json) =>
123 new AddContentOverlay.fromJson(
124 jsonDecoder, jsonPath, json),
125 "change": (String jsonPath, Object json) =>
126 new ChangeContentOverlay.fromJson(
127 jsonDecoder, jsonPath, json),
128 "remove": (String jsonPath, Object json) =>
129 new RemoveContentOverlay.fromJson(
130 jsonDecoder, jsonPath, json)
131 }));
132 }
133 >>> (indent 2)
134 main() {
135 fieldInitializationCode.add(collectCode(() {
136 writeln(
137 '_$streamName = new StreamController<$className>(sync: true);');
138 writeln('$streamName = _$streamName.stream.asBroadcastStream();');
139 }));
140 }
141 <<<
142 main() {
143 fieldInitializationCode.add(collectCode(() {
144 writeln('_$streamName = new StreamController<$className>(sync: true);');
145 writeln('$streamName = _$streamName.stream.asBroadcastStream();');
146 }));
147 }
148 >>> (indent 2)
149 main() {
150 return context.getContents(source).data.substring(
151 replacementOffset, offset);
152 }
153 <<<
154 main() {
155 return context
156 .getContents(source)
157 .data
158 .substring(replacementOffset, offset);
159 }
160 >>> (indent 2)
161 main() {
162 contextsChangedRaw(new ContextsChangedEvent(
163 added: event.added.length > 0 ? [mockContext] : [],
164 changed: event.changed.length > 0 ? [mockContext] : [],
165 removed: event.removed.length > 0 ? [mockContext] : []));
166 }
167 <<<
168 main() {
169 contextsChangedRaw(new ContextsChangedEvent(
170 added: event.added.length > 0 ? [mockContext] : [],
171 changed: event.changed.length > 0 ? [mockContext] : [],
172 removed: event.removed.length > 0 ? [mockContext] : []));
173 }
174 >>> (indent 2)
175 void emitEmptyObjectClass(String className, ImpliedType impliedType) {
176 docComment(toHtmlVisitor.collectHtml(() {
177 toHtmlVisitor.p(() {
178 toHtmlVisitor.write(impliedType.humanReadableName);
179 });
180 }));
181 }
182 <<<
183 void emitEmptyObjectClass(String className, ImpliedType impliedType) {
184 docComment(toHtmlVisitor.collectHtml(() {
185 toHtmlVisitor.p(() {
186 toHtmlVisitor.write(impliedType.humanReadableName);
187 });
188 }));
189 }
190 >>> (indent 2)
191 main() {
192 manager.setRoots(<String>[
193 projPath
194 ], <String>[], <String, String>{});
195 }
196 <<<
197 main() {
198 manager.setRoots(<String>[projPath], <String>[], <String, String>{});
199 }
200 >>> (indent 2)
201 main() {
202 server.setAnalysisRoots('0', [
203 '/foo',
204 '/bar'
205 ], [], {});
206 return pumpEventQueue(40).then((_) {
207 expect(server.statusAnalyzing, isFalse);
208 });
209 }
210 <<<
211 main() {
212 server.setAnalysisRoots('0', ['/foo', '/bar'], [], {});
213 return pumpEventQueue(40).then((_) {
214 expect(server.statusAnalyzing, isFalse);
215 });
216 }
217 >>> (indent 2)
218 main() {
219 return withBuilder(new DartIrBuilder(
220 DART_CONSTANT_SYSTEM,
221 element,
222 // TODO(johnniwinther): Support closure variables.
223 new Set<dart2js.Local>()), () {
224 irBuilder.buildFunctionHeader(
225 constructor.parameters.map(converter.convertElement));
226 // Visit the body directly to avoid processing the signature as
227 // expressions.
228 // Call to allow for `body == null` in case of synthesized constructors.
229 build(body);
230 return irBuilder.makeConstructorDefinition(const [], const []);
231 });
232 }
233 <<<
234 main() {
235 return withBuilder(
236 new DartIrBuilder(
237 DART_CONSTANT_SYSTEM,
238 element,
239 // TODO(johnniwinther): Support closure variables.
240 new Set<dart2js.Local>()), () {
241 irBuilder.buildFunctionHeader(
242 constructor.parameters.map(converter.convertElement));
243 // Visit the body directly to avoid processing the signature as
244 // expressions.
245 // Call to allow for `body == null` in case of synthesized constructors.
246 build(body);
247 return irBuilder.makeConstructorDefinition(const [], const []);
248 });
249 }
OLDNEW
« no previous file with comments | « packages/dart_style/test/regression/0300/0391.stmt ('k') | packages/dart_style/test/regression/other/dart2js.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698