Chromium Code Reviews| Index: pkg/compiler/lib/src/js_emitter/startup_emitter/deferred_fragment_hash.dart |
| diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/deferred_output_unit_hash.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/deferred_fragment_hash.dart |
| similarity index 60% |
| copy from pkg/compiler/lib/src/js_emitter/full_emitter/deferred_output_unit_hash.dart |
| copy to pkg/compiler/lib/src/js_emitter/startup_emitter/deferred_fragment_hash.dart |
| index 8c79a8b20635f6d5505170ed3392434b964a0dcb..ddb3fc901f9adf8da355a3c98c0e46e8bd57abf0 100644 |
| --- a/pkg/compiler/lib/src/js_emitter/full_emitter/deferred_output_unit_hash.dart |
| +++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/deferred_fragment_hash.dart |
| @@ -2,13 +2,13 @@ |
| // 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. |
| -part of dart2js.js_emitter.full_emitter; |
| +part of dart2js.js_emitter.startup_emitter.model_emitter; |
| -class _DeferredOutputUnitHash extends jsAst.DeferredString { |
| +class _DeferredFragmentHash extends js.DeferredString { |
| String _hash; |
| - final OutputUnit _outputUnit; |
| + final DeferredFragment _fragment; |
| - _DeferredOutputUnitHash(this._outputUnit); |
| + _DeferredFragmentHash(this._fragment); |
| void setHash(String hash) { |
|
Siggi Cherem (dart-lang)
2015/07/23 00:01:10
any reason why not make this `set hash`?
floitsch
2015/07/29 18:00:28
Because this should only happen once as a delibera
|
| assert(_hash == null); |
| @@ -20,5 +20,5 @@ class _DeferredOutputUnitHash extends jsAst.DeferredString { |
| return '"$_hash"'; |
| } |
| - String toString() => "HashCode for ${_outputUnit} [$_hash]"; |
| + String toString() => "HashCode for ${_fragment} [$_hash]"; |
| } |