Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
mannprerak2 committed Dec 9, 2024
1 parent 681b31d commit b3e3093
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ files:
name: BaseUnion2
c:base.h@T@BaseNativeTypedef1:
name: BaseNativeTypedef1
dartName: DartBaseNativeTypedef1
dart-name: DartBaseNativeTypedef1
c:base.h@T@BaseNativeTypedef2:
name: BaseNativeTypedef2
dartName: DartBaseNativeTypedef1
dart-name: DartBaseNativeTypedef1
c:base.h@T@BaseNativeTypedef3:
name: BaseNativeTypedef3
dartName: DartBaseNativeTypedef1
dart-name: DartBaseNativeTypedef1
c:base.h@T@BaseTypedef1:
name: BaseTypedef1
c:base.h@T@BaseTypedef2:
Expand Down
4 changes: 2 additions & 2 deletions pkgs/ffigen/lib/src/config_provider/spec_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ void loadImportedTypes(YamlMap fileConfig,
for (final key in symbols.keys) {
final usr = key as String;
final value = symbols[usr]! as YamlMap;
final name = value['name'] as String;
final dartName = (value['dartName'] as String?) ?? name;
final name = value[strings.name] as String;
final dartName = (value[strings.dartName] as String?) ?? name;
usrTypeMappings[usr] = ImportedType(libraryImport, name, dartName, name,
importedDartType: true);
}
Expand Down
2 changes: 1 addition & 1 deletion pkgs/ffigen/lib/src/strings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const formatVersion = 'format_version';
const symbolFileFormatVersion = '1.0.0';
const files = 'files';
const usedConfig = 'used-config';
const dartName = 'dartName';
const dartName = 'dart-name';

const import = 'import';
const defaultSymbolFileImportPrefix = 'imp';
Expand Down

0 comments on commit b3e3093

Please sign in to comment.