Skip to content

Commit

Permalink
Fix analysis error
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit committed Jun 15, 2023
1 parent e6cd668 commit d8acef5
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions packages/custom_lint_builder/test/analyzer_converter_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ void main() {
.newFile('/home/user/project/lib/main2.dart', 'void main2() {}')
.createSource();

final another = AnalysisError(
source,
11,
12,
const LintCode(
final another = AnalysisError.tmp(
source: source,
offset: 11,
length: 12,
errorCode: const LintCode(
name: 'another',
problemMessage: 'another message',
url: 'https://dart.dev/diagnostics/another',
Expand All @@ -28,17 +28,16 @@ void main() {
expect(
CustomAnalyzerConverter()
.convertAnalysisError(
AnalysisError(
source2,
13,
14,
const LintCode(
AnalysisError.tmp(
source: source2,
offset: 12,
length: 14,
errorCode: const LintCode(
name: 'foo',
problemMessage: 'bar',
url: 'https://google.com/diagnostics/foo',
),
[],
[another.problemMessage],
contextMessages: [another.problemMessage],
),
)
.toJson(),
Expand Down

1 comment on commit d8acef5

@vercel
Copy link

@vercel vercel bot commented on d8acef5 Jun 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.