Skip to content

Commit

Permalink
pin version:
Browse files Browse the repository at this point in the history
  # flutter 3.22.0 pin `mate: 1.12.0` and analyzer 6.4.1 dep mate 1.12
  analyzer: ^6.4.1
  meta: 1.12.0
  • Loading branch information
chen56 committed May 24, 2024
1 parent 143dad4 commit aac0a5a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/_you_dart_internal/lib/src/analyzer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class CompilationUnitReader {
if (t == null) continue;

if (t is! InterfaceType) continue;
var findAnnoType = [t, ...t.allSupertypes].where((e) => e.getDisplayString() == annoType).firstOrNull;
var findAnnoType = [t, ...t.allSupertypes].where((e) => e.getDisplayString(withNullability:true) == annoType).firstOrNull;
if (findAnnoType == null) continue;
if (annoUrl != null) {
var publicExportFrom = findPublicExportLib(findAnnoType, library);
Expand Down Expand Up @@ -104,7 +104,7 @@ class AnnotationReader {
Reference? getFieldTypeAsRef(String name) {
var type = getField(name)?.toTypeValue();
if (type == null) return null;
var symbol = type.getDisplayString();
var symbol = type.getDisplayString(withNullability:true);
if (symbol == "") return null;
var publicExportFrom = findPublicExportLib(type, unit.library);
var url = publicExportFrom?.identifier;
Expand Down
7 changes: 5 additions & 2 deletions packages/_you_dart_internal/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ environment:

# Add regular dependencies here.
dependencies:
analyzer: ^6.5.0
code_builder: ^4.10.0
collection: ^1.18.0
file: ^7.0.0
meta: ^1.12.0

# flutter 3.22.0 pin `mate: 1.12.0` and analyzer 6.4.1 dep mate 1.12
analyzer: ^6.4.1
meta: 1.12.0

path: ^1.9.0
yaml: ^3.1.2
yaml_edit: ^2.2.1
Expand Down
1 change: 0 additions & 1 deletion packages/you_cli/lib/src/cli_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import 'package:code_builder/code_builder.dart';
import 'package:file/file.dart';
import 'package:path/path.dart' as path;
import 'package:_you_dart_internal/analyzer.dart';
import 'package:_you_dart_internal/src/pubspec.dart';

// final Glob _PAGE_GLOB = Glob("{**/page.dart,page.dart}");
class YouCli {
Expand Down
1 change: 0 additions & 1 deletion packages/you_cli/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dependencies:

# you_*
you_dart: ^0.0.6-dev.3

dev_dependencies:
lints: ^3.0.0
test:
Expand Down

0 comments on commit aac0a5a

Please sign in to comment.