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

Side by Side Diff: pkg/analyzer/lib/src/summary/public_namespace_computer.dart

Issue 1667723002: Use summary IDL file for interface classes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library analyzer.src.summary.public_namespace_visitor; 5 library analyzer.src.summary.public_namespace_visitor;
6 6
7 import 'package:analyzer/analyzer.dart'; 7 import 'package:analyzer/analyzer.dart';
8 import 'package:analyzer/src/summary/format.dart'; 8 import 'package:analyzer/src/summary/format.dart';
9 import 'package:analyzer/src/summary/idl.dart';
9 10
10 /** 11 /**
11 * Compute the public namespace portion of the summary for the given [unit], 12 * Compute the public namespace portion of the summary for the given [unit],
12 * which is presumed to be an unresolved AST. 13 * which is presumed to be an unresolved AST.
13 */ 14 */
14 UnlinkedPublicNamespaceBuilder computePublicNamespace(CompilationUnit unit) { 15 UnlinkedPublicNamespaceBuilder computePublicNamespace(CompilationUnit unit) {
15 _PublicNamespaceVisitor visitor = new _PublicNamespaceVisitor(); 16 _PublicNamespaceVisitor visitor = new _PublicNamespaceVisitor();
16 unit.accept(visitor); 17 unit.accept(visitor);
17 return new UnlinkedPublicNamespaceBuilder( 18 return new UnlinkedPublicNamespaceBuilder(
18 names: visitor.names, exports: visitor.exports, parts: visitor.parts); 19 names: visitor.names, exports: visitor.exports, parts: visitor.parts);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 152
152 @override 153 @override
153 visitVariableDeclaration(VariableDeclaration node) { 154 visitVariableDeclaration(VariableDeclaration node) {
154 String name = node.name.name; 155 String name = node.name.name;
155 addNameIfPublic(name, ReferenceKind.topLevelPropertyAccessor, 0); 156 addNameIfPublic(name, ReferenceKind.topLevelPropertyAccessor, 0);
156 if (!node.isFinal && !node.isConst) { 157 if (!node.isFinal && !node.isConst) {
157 addNameIfPublic('$name=', ReferenceKind.topLevelPropertyAccessor, 0); 158 addNameIfPublic('$name=', ReferenceKind.topLevelPropertyAccessor, 0);
158 } 159 }
159 } 160 }
160 } 161 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/prelink.dart ('k') | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698