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

Side by Side Diff: pkg/front_end/lib/src/incremental/unlinked_unit.dart

Issue 2978063002: Move parser helper classes to own files and clean them up. (Closed)
Patch Set: Don't use problems.dart in parser. Created 3 years, 5 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/front_end/lib/src/fasta/source/outline_builder.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) 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 'dart:typed_data'; 5 import 'dart:typed_data';
6 6
7 import 'package:front_end/src/base/api_signature.dart'; 7 import 'package:front_end/src/base/api_signature.dart';
8 import 'package:front_end/src/fasta/parser/listener.dart' show Listener; 8 import 'package:front_end/src/fasta/parser.dart'
9 import 'package:front_end/src/fasta/parser/parser.dart' show Parser, optional; 9 show Listener, Parser, optional;
10 import 'package:front_end/src/fasta/parser/top_level_parser.dart'; 10 import 'package:front_end/src/fasta/parser/top_level_parser.dart';
11 import 'package:front_end/src/fasta/scanner.dart'; 11 import 'package:front_end/src/fasta/scanner.dart';
12 import 'package:front_end/src/fasta/scanner/token_constants.dart' 12 import 'package:front_end/src/fasta/scanner/token_constants.dart'
13 show STRING_TOKEN; 13 show STRING_TOKEN;
14 import 'package:front_end/src/fasta/source/directive_listener.dart'; 14 import 'package:front_end/src/fasta/source/directive_listener.dart';
15 import 'package:front_end/src/incremental/format.dart'; 15 import 'package:front_end/src/incremental/format.dart';
16 16
17 /// Compute the [UnlinkedUnitBuilder] for the [content]. 17 /// Compute the [UnlinkedUnitBuilder] for the [content].
18 UnlinkedUnitBuilder computeUnlinkedUnit(List<int> salt, List<int> content) { 18 UnlinkedUnitBuilder computeUnlinkedUnit(List<int> salt, List<int> content) {
19 // Scan the content. 19 // Scan the content.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 return close; 117 return close;
118 } 118 }
119 return super.parseFunctionBody(token, isExpression, allowAbstract); 119 return super.parseFunctionBody(token, isExpression, allowAbstract);
120 } 120 }
121 121
122 Token parseMixinApplicationRest(Token token) { 122 Token parseMixinApplicationRest(Token token) {
123 hasMixin = true; 123 hasMixin = true;
124 return super.parseMixinApplicationRest(token); 124 return super.parseMixinApplicationRest(token);
125 } 125 }
126 } 126 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/outline_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698