Skip to content

Commit 26d85f8

Browse files
authored
Updated dependencies and code to package:analyzer 8.0.0 (#295)
1 parent 50e7f54 commit 26d85f8

File tree

14 files changed

+120
-123
lines changed

14 files changed

+120
-123
lines changed

.github/workflows/pkg-typed_sql-override.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ jobs:
6060
run: dart analyze --fatal-infos
6161
if: always() && steps.install.outcome == 'success'
6262
- name: Run tests
63-
run: dart test
63+
run: dart test -j 1

dartdoc_test/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
## v0.1.1
2+
* Updated dependencies (`package:analyzer`).
3+
14
## v0.1.0
25
* Initial release, with code sample extraction, analysis, and some options to write or ignore analysis.

dartdoc_test/lib/src/analyzer.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import 'package:analyzer/dart/analysis/analysis_context.dart';
1616
import 'package:analyzer/dart/analysis/results.dart';
17-
import 'package:analyzer/error/error.dart';
17+
import 'package:analyzer/diagnostic/diagnostic.dart';
1818
import 'package:source_span/source_span.dart';
1919

2020
import 'model.dart';
@@ -26,7 +26,7 @@ Future<DartdocAnalysisResult> getAnalysisResult(
2626
) async {
2727
final result = await context.currentSession.getErrors(file.path);
2828
if (result is ErrorsResult) {
29-
final errors = result.errors.map((e) {
29+
final errors = result.diagnostics.map((e) {
3030
final (start, end) = (e.offset, e.offset + e.length);
3131
final generatedSpan = file.sourceFile.span(start, end);
3232
final commentSpan = getOriginalSubSpan(
@@ -61,7 +61,7 @@ FileSpan? getOriginalSubSpan({
6161
/// Dartdoc error result
6262
class DartdocErrorResult {
6363
/// Error description
64-
final AnalysisError error;
64+
final Diagnostic error;
6565

6666
/// Source span of the comment containing code sample from the original file.
6767
final FileSpan? commentSpan;

dartdoc_test/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dartdoc_test
2-
version: 0.1.0
2+
version: 0.1.1-dev
33
description: |
44
Utilities for testing code snippets embedded in documentation comments.
55
homepage: https://github.com/google/dart-neats/tree/master/dartdoc_test
@@ -12,7 +12,7 @@ environment:
1212
sdk: ^3.5.0
1313
dependencies:
1414
test: ^1.24.0
15-
analyzer: '>=5.10.0 <8.0.0'
15+
analyzer: '^8.0.0'
1616
args: ^2.5.0
1717
markdown: ^7.0.2
1818
path: ^1.8.3

0 commit comments

Comments
 (0)