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

Side by Side Diff: pkg/analyzer/lib/src/error/pending_error.dart

Issue 2342733002: Break up another large file (Closed)
Patch Set: fixed floating comment Created 4 years, 3 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/lib/src/error/codes.dart ('k') | pkg/analyzer/lib/src/generated/constant.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.error.pending_error; 5 library analyzer.src.error.pending_error;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/error/error.dart';
10 import 'package:analyzer/src/error/codes.dart';
9 import 'package:analyzer/src/generated/constant.dart'; 11 import 'package:analyzer/src/generated/constant.dart';
10 import 'package:analyzer/src/generated/error.dart';
11 import 'package:analyzer/src/generated/source.dart'; 12 import 'package:analyzer/src/generated/source.dart';
12 13
13 /** 14 /**
14 * A pending error is an analysis error that could not be reported at the time 15 * A pending error is an analysis error that could not be reported at the time
15 * it was discovered because some piece of information might be missing. After 16 * it was discovered because some piece of information might be missing. After
16 * the information has been computed, the pending error can be converted into a 17 * the information has been computed, the pending error can be converted into a
17 * real error. 18 * real error.
18 */ 19 */
19 abstract class PendingError { 20 abstract class PendingError {
20 /** 21 /**
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 if (reason != null) { 73 if (reason != null) {
73 errorCode = HintCode.MISSING_REQUIRED_PARAM_WITH_DETAILS; 74 errorCode = HintCode.MISSING_REQUIRED_PARAM_WITH_DETAILS;
74 arguments = [parameterName, reason]; 75 arguments = [parameterName, reason];
75 } else { 76 } else {
76 errorCode = HintCode.MISSING_REQUIRED_PARAM; 77 errorCode = HintCode.MISSING_REQUIRED_PARAM;
77 arguments = [parameterName]; 78 arguments = [parameterName];
78 } 79 }
79 return new AnalysisError(source, offset, length, errorCode, arguments); 80 return new AnalysisError(source, offset, length, errorCode, arguments);
80 } 81 }
81 } 82 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/error/codes.dart ('k') | pkg/analyzer/lib/src/generated/constant.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698