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

Side by Side Diff: pkg/scheduled_test/lib/src/descriptor/descriptor.dart

Issue 16368003: Fix an analyzer error in scheduled_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library descriptor.descriptor; 5 library descriptor.descriptor;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import '../utils.dart'; 9 import '../utils.dart';
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 /// An unscheduled version of [validate]. This is useful if validation errors 34 /// An unscheduled version of [validate]. This is useful if validation errors
35 /// need to be caught, since otherwise they'd be registered by the schedule. 35 /// need to be caught, since otherwise they'd be registered by the schedule.
36 Future validateNow([String parent]); 36 Future validateNow([String parent]);
37 37
38 /// Returns a detailed tree-style description of [this]. 38 /// Returns a detailed tree-style description of [this].
39 String describe(); 39 String describe();
40 } 40 }
41 41
42 /// An interface for descriptors that can load the contents of sub-descriptors. 42 /// An interface for descriptors that can load the contents of sub-descriptors.
43 abstract class LoadableDescriptor extends Descriptor { 43 abstract class LoadableDescriptor implements Descriptor {
44 /// Treats [this] as an in-memory filesystem and returns a stream of the 44 /// Treats [this] as an in-memory filesystem and returns a stream of the
45 /// contents of the child entry located at [path]. This only works if [this] 45 /// contents of the child entry located at [path]. This only works if [this]
46 /// is a directory entry. This operation is not [schedule]d. 46 /// is a directory entry. This operation is not [schedule]d.
47 /// 47 ///
48 /// This method uses POSIX paths regardless of the underlying operating 48 /// This method uses POSIX paths regardless of the underlying operating
49 /// system. 49 /// system.
50 /// 50 ///
51 /// All errors in loading the file will be passed through the returned 51 /// All errors in loading the file will be passed through the returned
52 /// [Stream]. 52 /// [Stream].
53 Stream<List<int>> load(String pathToLoad); 53 Stream<List<int>> load(String pathToLoad);
54 } 54 }
55 55
56 /// An interface for descriptors whose contents can be read. 56 /// An interface for descriptors whose contents can be read.
57 abstract class ReadableDescriptor extends Descriptor { 57 abstract class ReadableDescriptor implements Descriptor {
58 /// Returns the contents of [this] as a stream. This only works if [this] is a 58 /// Returns the contents of [this] as a stream. This only works if [this] is a
59 /// file entry. This operation is not [schedule]d. 59 /// file entry. This operation is not [schedule]d.
60 /// 60 ///
61 /// All errors in loading the file will be passed through the returned 61 /// All errors in loading the file will be passed through the returned
62 /// [Stream]. 62 /// [Stream].
63 Stream<List<int>> read(); 63 Stream<List<int>> read();
64 } 64 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698