| >>> (indent 2) |
| main() { |
| List<Future<List<LocationImpl>>> nodeFutures = |
| <Future<List<LocationImpl>>>[]; |
| } |
| <<< |
| main() { |
| List<Future<List<LocationImpl>>> nodeFutures = |
| <Future<List<LocationImpl>>>[]; |
| } |
| >>> |
| class CachingPubPackageMapProvider { |
| CachingPubPackageMapProvider(ResourceProvider resourceProvider, |
| DirectoryBasedDartSdk sdk, [RunPubList runPubList, this._writeFile]) |
| : super(resourceProvider, sdk, runPubList) { |
| ; |
| } |
| } |
| <<< |
| class CachingPubPackageMapProvider { |
| CachingPubPackageMapProvider( |
| ResourceProvider resourceProvider, DirectoryBasedDartSdk sdk, |
| [RunPubList runPubList, this._writeFile]) |
| : super(resourceProvider, sdk, runPubList) { |
| ; |
| } |
| } |
| >>> |
| class Foo { |
| bool selectionIncludesNonWhitespaceOutsideNode(SourceRange selection, |
| AstNode node) => _selectionIncludesNonWhitespaceOutsideRange( |
| selection, SourceRangeFactory.rangeNode(node)); |
| } |
| <<< |
| class Foo { |
| bool selectionIncludesNonWhitespaceOutsideNode( |
| SourceRange selection, AstNode node) => |
| _selectionIncludesNonWhitespaceOutsideRange( |
| selection, SourceRangeFactory.rangeNode(node)); |
| } |
| >>> (indent 2) |
| void _writeCompletionPerformanceList(StringBuffer buffer) { |
| buffer.write(''' |
| <p><strong>First (ms)</strong> - the number of milliseconds |
| from when completion received the request until the first notification |
| with completion results was queued for sending back to the client. |
| <p><strong>Complete (ms)</strong> - the number of milliseconds |
| from when completion received the request until the final notification |
| with completion results was queued for sending back to the client. |
| <p><strong># Notifications</strong> - the total number of notifications |
| sent to the client with completion results for this request. |
| <p><strong># Suggestions</strong> - the number of suggestions |
| sent to the client in the first notification, followed by a comma, |
| followed by the number of suggestions send to the client |
| in the last notification. If there is only one notification, |
| then there will be only one number in this column.'''); |
| } |
| <<< |
| void _writeCompletionPerformanceList(StringBuffer buffer) { |
| buffer.write(''' |
| <p><strong>First (ms)</strong> - the number of milliseconds |
| from when completion received the request until the first notification |
| with completion results was queued for sending back to the client. |
| <p><strong>Complete (ms)</strong> - the number of milliseconds |
| from when completion received the request until the final notification |
| with completion results was queued for sending back to the client. |
| <p><strong># Notifications</strong> - the total number of notifications |
| sent to the client with completion results for this request. |
| <p><strong># Suggestions</strong> - the number of suggestions |
| sent to the client in the first notification, followed by a comma, |
| followed by the number of suggestions send to the client |
| in the last notification. If there is only one notification, |
| then there will be only one number in this column.'''); |
| } |
| >>> |
| final ListResultDescriptor<AnalysisError> HINTS = |
| new ListResultDescriptor<AnalysisError>( |
| 'HINT_ERRORS', AnalysisError.NO_ERRORS); |
| <<< |
| final ListResultDescriptor<AnalysisError> HINTS = |
| new ListResultDescriptor<AnalysisError>( |
| 'HINT_ERRORS', AnalysisError.NO_ERRORS); |
| >>> (indent 2) |
| makeMatcher() { |
| docComment(toHtmlVisitor.collectHtml(() { |
| toHtmlVisitor.p(() { |
| toHtmlVisitor.write(context); |
| }); |
| })); |
| } |
| <<< |
| makeMatcher() { |
| docComment(toHtmlVisitor.collectHtml(() { |
| toHtmlVisitor.p(() { |
| toHtmlVisitor.write(context); |
| }); |
| })); |
| } |
| >>> (indent 6) |
| main() { |
| files = jsonDecoder._decodeMap(jsonPath + ".files", json["files"], |
| valueDecoder: (String jsonPath, Object json) => |
| jsonDecoder._decodeUnion( |
| jsonPath, |
| json, |
| "type", |
| { |
| "add": (String jsonPath, Object json) => |
| new AddContentOverlay.fromJson(jsonDecoder, jsonPath, json), |
| "change": (String jsonPath, Object json) => |
| new ChangeContentOverlay.fromJson( |
| jsonDecoder, jsonPath, json), |
| "remove": (String jsonPath, Object json) => |
| new RemoveContentOverlay.fromJson(jsonDecoder, jsonPath, json) |
| })); |
| } |
| <<< |
| main() { |
| files = jsonDecoder._decodeMap(jsonPath + ".files", json["files"], |
| valueDecoder: (String jsonPath, Object json) => |
| jsonDecoder._decodeUnion(jsonPath, json, "type", { |
| "add": (String jsonPath, Object json) => |
| new AddContentOverlay.fromJson( |
| jsonDecoder, jsonPath, json), |
| "change": (String jsonPath, Object json) => |
| new ChangeContentOverlay.fromJson( |
| jsonDecoder, jsonPath, json), |
| "remove": (String jsonPath, Object json) => |
| new RemoveContentOverlay.fromJson( |
| jsonDecoder, jsonPath, json) |
| })); |
| } |
| >>> (indent 2) |
| main() { |
| fieldInitializationCode.add(collectCode(() { |
| writeln( |
| '_$streamName = new StreamController<$className>(sync: true);'); |
| writeln('$streamName = _$streamName.stream.asBroadcastStream();'); |
| })); |
| } |
| <<< |
| main() { |
| fieldInitializationCode.add(collectCode(() { |
| writeln('_$streamName = new StreamController<$className>(sync: true);'); |
| writeln('$streamName = _$streamName.stream.asBroadcastStream();'); |
| })); |
| } |
| >>> (indent 2) |
| main() { |
| return context.getContents(source).data.substring( |
| replacementOffset, offset); |
| } |
| <<< |
| main() { |
| return context |
| .getContents(source) |
| .data |
| .substring(replacementOffset, offset); |
| } |
| >>> (indent 2) |
| main() { |
| contextsChangedRaw(new ContextsChangedEvent( |
| added: event.added.length > 0 ? [mockContext] : [], |
| changed: event.changed.length > 0 ? [mockContext] : [], |
| removed: event.removed.length > 0 ? [mockContext] : [])); |
| } |
| <<< |
| main() { |
| contextsChangedRaw(new ContextsChangedEvent( |
| added: event.added.length > 0 ? [mockContext] : [], |
| changed: event.changed.length > 0 ? [mockContext] : [], |
| removed: event.removed.length > 0 ? [mockContext] : [])); |
| } |
| >>> (indent 2) |
| void emitEmptyObjectClass(String className, ImpliedType impliedType) { |
| docComment(toHtmlVisitor.collectHtml(() { |
| toHtmlVisitor.p(() { |
| toHtmlVisitor.write(impliedType.humanReadableName); |
| }); |
| })); |
| } |
| <<< |
| void emitEmptyObjectClass(String className, ImpliedType impliedType) { |
| docComment(toHtmlVisitor.collectHtml(() { |
| toHtmlVisitor.p(() { |
| toHtmlVisitor.write(impliedType.humanReadableName); |
| }); |
| })); |
| } |