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

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

Issue 2525753003: Remove _LibraryNode altogether. (Closed)
Patch Set: Created 4 years 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/analyzer/lib/src/dart/analysis/driver.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:convert'; 5 import 'dart:convert';
6 import 'dart:typed_data'; 6 import 'dart:typed_data';
7 7
8 import 'package:analyzer/dart/ast/ast.dart'; 8 import 'package:analyzer/dart/ast/ast.dart';
9 import 'package:analyzer/dart/ast/token.dart'; 9 import 'package:analyzer/dart/ast/token.dart';
10 import 'package:analyzer/error/listener.dart'; 10 import 'package:analyzer/error/listener.dart';
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 _transitiveSignature = signature.toHex(); 202 _transitiveSignature = signature.toHex();
203 } 203 }
204 return _transitiveSignature; 204 return _transitiveSignature;
205 } 205 }
206 206
207 /** 207 /**
208 * The [UnlinkedUnit] of the file. 208 * The [UnlinkedUnit] of the file.
209 */ 209 */
210 UnlinkedUnit get unlinked => _unlinked; 210 UnlinkedUnit get unlinked => _unlinked;
211 211
212 /**
213 * Return the [uri] string.
214 */
215 String get uriStr => uri.toString();
216
212 @override 217 @override
213 bool operator ==(Object other) { 218 bool operator ==(Object other) {
214 return other is FileState && other.uri == uri; 219 return other is FileState && other.uri == uri;
215 } 220 }
216 221
217 /** 222 /**
218 * Return a new parsed unresolved [CompilationUnit]. 223 * Return a new parsed unresolved [CompilationUnit].
219 */ 224 */
220 CompilationUnit parse(AnalysisErrorListener errorListener) { 225 CompilationUnit parse(AnalysisErrorListener errorListener) {
221 AnalysisOptions analysisOptions = _fsState._analysisOptions; 226 AnalysisOptions analysisOptions = _fsState._analysisOptions;
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 .where((f) => f._transitiveFiles == null) 555 .where((f) => f._transitiveFiles == null)
551 .toSet(); 556 .toSet();
552 } 557 }
553 558
554 Set<FileState> get filesWithoutTransitiveSignature { 559 Set<FileState> get filesWithoutTransitiveSignature {
555 return state._uriToFile.values 560 return state._uriToFile.values
556 .where((f) => f._transitiveSignature == null) 561 .where((f) => f._transitiveSignature == null)
557 .toSet(); 562 .toSet();
558 } 563 }
559 } 564 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698