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

Side by Side Diff: pkg/analysis_server/test/stress/utilities/git.dart

Issue 1838933003: Format code in analysis_server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 * Support for interacting with a git repository. 6 * Support for interacting with a git repository.
7 */ 7 */
8 library analysis_server.test.stress.utilities.git; 8 library analysis_server.test.stress.utilities.git;
9 9
10 import 'dart:convert'; 10 import 'dart:convert';
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 /** 372 /**
373 * Return a representation of the individual blobs within this diff. 373 * Return a representation of the individual blobs within this diff.
374 */ 374 */
375 BlobDiff getBlobDiff() => repository.getBlobDiff(srcBlob, dstBlob); 375 BlobDiff getBlobDiff() => repository.getBlobDiff(srcBlob, dstBlob);
376 376
377 /** 377 /**
378 * Return `true` if this diff applies to a file with the given name. 378 * Return `true` if this diff applies to a file with the given name.
379 */ 379 */
380 bool isFor(String fileName) => 380 bool isFor(String fileName) =>
381 (srcPath != null && fileName == path.basename(srcPath)) || 381 (srcPath != null && fileName == path.basename(srcPath)) ||
382 (dstPath != null && fileName == path.basename(dstPath)); 382 (dstPath != null && fileName == path.basename(dstPath));
383 383
384 @override 384 @override
385 String toString() => srcPath ?? dstPath; 385 String toString() => srcPath ?? dstPath;
386 } 386 }
387 387
388 /** 388 /**
389 * A representation of a git repository. 389 * A representation of a git repository.
390 */ 390 */
391 class GitRepository { 391 class GitRepository {
392 /** 392 /**
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 currentCommit--; 533 currentCommit--;
534 return true; 534 return true;
535 } 535 }
536 536
537 /** 537 /**
538 * Return the difference between the current commit and the commit that 538 * Return the difference between the current commit and the commit that
539 * followed it. 539 * followed it.
540 */ 540 */
541 CommitDelta next() => history.repository.getCommitDiff(srcCommit, dstCommit); 541 CommitDelta next() => history.repository.getCommitDiff(srcCommit, dstCommit);
542 } 542 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698