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

Side by Side Diff: pkg/analyzer/lib/src/dart/analysis/file_state.dart

Issue 2911313002: Update the analysis server diagnostic page - re-enable code completion and overlay pages, (Closed)
Patch Set: small tweaks Created 3 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
« no previous file with comments | « pkg/analysis_server/lib/src/status/pages.dart ('k') | 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) 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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/status/pages.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698