| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:convert'; | 6 import 'dart:convert'; |
| 7 import 'dart:typed_data'; | 7 import 'dart:typed_data'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 * | 57 * |
| 58 * The [path] must be absolute and normalized. | 58 * The [path] must be absolute and normalized. |
| 59 */ | 59 */ |
| 60 void operator []=(String path, String content) { | 60 void operator []=(String path, String content) { |
| 61 if (content == null) { | 61 if (content == null) { |
| 62 _map.remove(path); | 62 _map.remove(path); |
| 63 } else { | 63 } else { |
| 64 _map[path] = content; | 64 _map[path] = content; |
| 65 } | 65 } |
| 66 } | 66 } |
| 67 |
| 68 /** |
| 69 * Return the paths currently being overridden. |
| 70 */ |
| 71 Iterable<String> get paths => _map.keys; |
| 67 } | 72 } |
| 68 | 73 |
| 69 /** | 74 /** |
| 70 * Information about a file being analyzed, explicitly or implicitly. | 75 * Information about a file being analyzed, explicitly or implicitly. |
| 71 * | 76 * |
| 72 * It provides a consistent view on its properties. | 77 * It provides a consistent view on its properties. |
| 73 * | 78 * |
| 74 * The properties are not guaranteed to represent the most recent state | 79 * The properties are not guaranteed to represent the most recent state |
| 75 * of the file system. To update the file to the most recent state, [refresh] | 80 * of the file system. To update the file to the most recent state, [refresh] |
| 76 * should be called. | 81 * should be called. |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 926 _FastaElementProxy operator [](fasta.Builder builder) => | 931 _FastaElementProxy operator [](fasta.Builder builder) => |
| 927 _elements.putIfAbsent(builder, () => new _FastaElementProxy()); | 932 _elements.putIfAbsent(builder, () => new _FastaElementProxy()); |
| 928 | 933 |
| 929 @override | 934 @override |
| 930 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 935 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 931 } | 936 } |
| 932 | 937 |
| 933 class _FastaInterfaceTypeProxy implements fasta.KernelInterfaceType { | 938 class _FastaInterfaceTypeProxy implements fasta.KernelInterfaceType { |
| 934 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 939 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 935 } | 940 } |
| OLD | NEW |