| Index: pkg/front_end/lib/src/base/timestamped_data.dart
|
| diff --git a/pkg/front_end/lib/src/base/timestamped_data.dart b/pkg/front_end/lib/src/base/timestamped_data.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4c76dc5b0e403be0749c346d19500a6790407976
|
| --- /dev/null
|
| +++ b/pkg/front_end/lib/src/base/timestamped_data.dart
|
| @@ -0,0 +1,24 @@
|
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +/**
|
| + * Analysis data for which we have a modification time.
|
| + */
|
| +class TimestampedData<E> {
|
| + /**
|
| + * The modification time of the source from which the data was created.
|
| + */
|
| + final int modificationTime;
|
| +
|
| + /**
|
| + * The data that was created from the source.
|
| + */
|
| + final E data;
|
| +
|
| + /**
|
| + * Initialize a newly created holder to associate the given [data] with the
|
| + * given [modificationTime].
|
| + */
|
| + TimestampedData(this.modificationTime, this.data);
|
| +}
|
|
|