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

Side by Side Diff: pkg/analyzer/tool/summary/mini_ast.dart

Issue 2890523002: merge fasta.Token into analyzer.Token (Closed)
Patch Set: 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
« no previous file with comments | « pkg/analyzer/tool/summary/generate.dart ('k') | pkg/compiler/lib/src/kernel/fasta_support.dart » ('j') | 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) 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 import 'package:front_end/src/fasta/errors.dart'; 5 import 'package:front_end/src/fasta/errors.dart';
6 import 'package:front_end/src/fasta/parser/identifier_context.dart'; 6 import 'package:front_end/src/fasta/parser/identifier_context.dart';
7 import 'package:front_end/src/fasta/parser/parser.dart'; 7 import 'package:front_end/src/fasta/parser/parser.dart';
8 import 'package:front_end/src/fasta/scanner/token.dart'; 8 import 'package:front_end/src/scanner/token.dart';
9 import 'package:front_end/src/fasta/source/stack_listener.dart'; 9 import 'package:front_end/src/fasta/source/stack_listener.dart';
10 import 'package:front_end/src/scanner/token.dart' as analyzer; 10 import 'package:front_end/src/scanner/token.dart' as analyzer;
11 11
12 /// "Mini AST" representation of a declaration which can accept annotations. 12 /// "Mini AST" representation of a declaration which can accept annotations.
13 class AnnotatedNode { 13 class AnnotatedNode {
14 final Comment documentationComment; 14 final Comment documentationComment;
15 15
16 final List<Annotation> metadata; 16 final List<Annotation> metadata;
17 17
18 AnnotatedNode(this.documentationComment, List<Annotation> metadata) 18 AnnotatedNode(this.documentationComment, List<Annotation> metadata)
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 final String name; 464 final String name;
465 465
466 final List<TypeName> typeArguments; 466 final List<TypeName> typeArguments;
467 467
468 TypeName(this.name, this.typeArguments); 468 TypeName(this.name, this.typeArguments);
469 } 469 }
470 470
471 /// "Mini AST" representation of an expression which summary code generation 471 /// "Mini AST" representation of an expression which summary code generation
472 /// need not be concerned about. 472 /// need not be concerned about.
473 class UnknownExpression extends Expression {} 473 class UnknownExpression extends Expression {}
OLDNEW
« no previous file with comments | « pkg/analyzer/tool/summary/generate.dart ('k') | pkg/compiler/lib/src/kernel/fasta_support.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698