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

Side by Side Diff: pkg/analyzer/lib/src/generated/incremental_resolver.dart

Issue 2488043002: Enable generic method support by default (Closed)
Patch Set: clean up Created 4 years, 1 month 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/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/parser.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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.generated.incremental_resolver; 5 library analyzer.src.generated.incremental_resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:math' as math; 8 import 'dart:math' as math;
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 } 736 }
737 737
738 CompilationUnit _parseUnit(String code) { 738 CompilationUnit _parseUnit(String code) {
739 LoggingTimer timer = logger.startTimer(); 739 LoggingTimer timer = logger.startTimer();
740 try { 740 try {
741 Token token = _scan(code); 741 Token token = _scan(code);
742 RecordingErrorListener errorListener = new RecordingErrorListener(); 742 RecordingErrorListener errorListener = new RecordingErrorListener();
743 Parser parser = new Parser(_unitSource, errorListener); 743 Parser parser = new Parser(_unitSource, errorListener);
744 AnalysisOptions options = _unitElement.context.analysisOptions; 744 AnalysisOptions options = _unitElement.context.analysisOptions;
745 parser.parseGenericMethodComments = options.strongMode; 745 parser.parseGenericMethodComments = options.strongMode;
746 parser.parseGenericMethods = options.enableGenericMethods;
747 CompilationUnit unit = parser.parseCompilationUnit(token); 746 CompilationUnit unit = parser.parseCompilationUnit(token);
748 _newParseErrors = errorListener.errors; 747 _newParseErrors = errorListener.errors;
749 return unit; 748 return unit;
750 } finally { 749 } finally {
751 timer.stop('parse'); 750 timer.stop('parse');
752 } 751 }
753 } 752 }
754 753
755 /** 754 /**
756 * Attempts to resolve a documentation comment change. 755 * Attempts to resolve a documentation comment change.
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 @override 1302 @override
1304 String toString() => name; 1303 String toString() => name;
1305 } 1304 }
1306 1305
1307 class _TokenPair { 1306 class _TokenPair {
1308 final _TokenDifferenceKind kind; 1307 final _TokenDifferenceKind kind;
1309 final Token oldToken; 1308 final Token oldToken;
1310 final Token newToken; 1309 final Token newToken;
1311 _TokenPair(this.kind, this.oldToken, this.newToken); 1310 _TokenPair(this.kind, this.oldToken, this.newToken);
1312 } 1311 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698