 Chromium Code Reviews
 Chromium Code Reviews Issue 2486873003:
  Move scanner into pkg/front_end/lib/src/scanner.  (Closed)
    
  
    Issue 2486873003:
  Move scanner into pkg/front_end/lib/src/scanner.  (Closed) 
  | Index: pkg/front_end/lib/src/scanner/interner.dart | 
| diff --git a/pkg/analyzer/lib/src/generated/interner.dart b/pkg/front_end/lib/src/scanner/interner.dart | 
| similarity index 52% | 
| copy from pkg/analyzer/lib/src/generated/interner.dart | 
| copy to pkg/front_end/lib/src/scanner/interner.dart | 
| index 9741f2835b31fecb2636bb51b394178ca1703eaa..19b139a17cfd13f7406816e72d5df9358807dfe1 100644 | 
| --- a/pkg/analyzer/lib/src/generated/interner.dart | 
| +++ b/pkg/front_end/lib/src/scanner/interner.dart | 
| @@ -1,10 +1,8 @@ | 
| -// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 
| 
Brian Wilkerson
2016/11/08 20:53:23
We should be consistent about updating or not upda
 
Paul Berry
2016/11/08 21:47:06
The only value I see in updating it is that as fil
 
Brian Wilkerson
2016/11/08 22:01:23
In that case, you missed two files. :-) (Hence the
 
Paul Berry
2016/11/08 22:06:02
Whoops, thank you.  Please see https://codereview.
 | 
| // 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. | 
| -library analyzer.src.generated.interner; | 
| - | 
| -import 'dart:collection'; | 
| +library front_end.src.scanner.interner; | 
| /** | 
| * The interface `Interner` defines the behavior of objects that can intern | 
| @@ -19,27 +17,6 @@ abstract class Interner { | 
| } | 
| /** | 
| - * The class `MappedInterner` implements an interner that uses a map to manage | 
| - * the strings that have been interned. | 
| - */ | 
| -class MappedInterner implements Interner { | 
| - /** | 
| - * A table mapping strings to themselves. | 
| - */ | 
| - Map<String, String> _table = new HashMap<String, String>(); | 
| - | 
| - @override | 
| - String intern(String string) { | 
| - String original = _table[string]; | 
| - if (original == null) { | 
| - _table[string] = string; | 
| - return string; | 
| - } | 
| - return original; | 
| - } | 
| -} | 
| - | 
| -/** | 
| * The class `NullInterner` implements an interner that does nothing (does not | 
| * actually intern any strings). | 
| */ |