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

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

Issue 2875373002: Move flat_buffer and api_signature into front_end. (Closed)
Patch Set: Update summary format generator. Created 3 years, 7 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 /// Additional data model classes used by the summary builder. 5 /// Additional data model classes used by the summary builder.
6 /// 6 ///
7 /// The summary builder uses 4 pieces of data: 7 /// The summary builder uses 4 pieces of data:
8 /// 8 ///
9 /// * Unlinked**Builders: builder classes for each piece of output in the 9 /// * Unlinked**Builders: builder classes for each piece of output in the
10 /// summary (see format.dart). 10 /// summary (see format.dart).
11 /// 11 ///
12 /// * A simplified expression syntax: model relevant pieces of initializers 12 /// * A simplified expression syntax: model relevant pieces of initializers
13 /// and constants before serializing them (see expressions.dart). 13 /// and constants before serializing them (see expressions.dart).
14 /// 14 ///
15 /// * Lazy references: a way to model references on the fly so we can build 15 /// * Lazy references: a way to model references on the fly so we can build
16 /// summaries in a single pass. 16 /// summaries in a single pass.
17 /// 17 ///
18 /// * Scopes: used to track the current context of the parser, used in great 18 /// * Scopes: used to track the current context of the parser, used in great
19 /// part to easily resolve lazy references at the end of the build process. 19 /// part to easily resolve lazy references at the end of the build process.
20 library summary.src.scope; 20 library summary.src.scope;
21 21
22 import 'package:analyzer/src/summary/format.dart'; 22 import 'package:analyzer/src/summary/format.dart';
23 import 'package:analyzer/src/summary/idl.dart'; 23 import 'package:analyzer/src/summary/idl.dart';
24 24
25 export 'package:analyzer/src/summary/api_signature.dart';
26 export 'package:analyzer/src/summary/format.dart'; 25 export 'package:analyzer/src/summary/format.dart';
27 export 'package:analyzer/src/summary/idl.dart'; 26 export 'package:analyzer/src/summary/idl.dart';
27 export 'package:front_end/src/base/api_signature.dart';
28 28
29 export 'expressions.dart'; 29 export 'expressions.dart';
30 export 'visitor.dart'; 30 export 'visitor.dart';
31 31
32 class ClassScope extends TypeParameterScope { 32 class ClassScope extends TypeParameterScope {
33 String className; 33 String className;
34 UnlinkedClassBuilder currentClass = new UnlinkedClassBuilder(); 34 UnlinkedClassBuilder currentClass = new UnlinkedClassBuilder();
35 UnlinkedPublicNameBuilder publicName = new UnlinkedPublicNameBuilder(); 35 UnlinkedPublicNameBuilder publicName = new UnlinkedPublicNameBuilder();
36 Set<String> members = new Set<String>(); 36 Set<String> members = new Set<String>();
37 ClassScope(Scope parent) : super(parent); 37 ClassScope(Scope parent) : super(parent);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 TypeParameterScope(this.parent); 181 TypeParameterScope(this.parent);
182 182
183 void computeReference(LazyEntityRef ref) { 183 void computeReference(LazyEntityRef ref) {
184 var i = typeParameters.indexOf(ref.name); 184 var i = typeParameters.indexOf(ref.name);
185 if (i < 0) return parent.computeReference(ref); 185 if (i < 0) return parent.computeReference(ref);
186 // Note: there is no indexOffset here because we don't go into functions at 186 // Note: there is no indexOffset here because we don't go into functions at
187 // all (so there is no nesting of type-parameter scopes). 187 // all (so there is no nesting of type-parameter scopes).
188 ref.paramReference = typeParameters.length - i; 188 ref.paramReference = typeParameters.length - i;
189 } 189 }
190 } 190 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/api_signature.dart ('k') | pkg/analyzer/lib/src/summary/flat_buffers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698