Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
Some more linter fix, and bump dart to 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
comigor committed Dec 25, 2019
1 parent 4cacd21 commit a71334b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ ClassProperty _selectionToClassProperty(

final field = (selection as FieldNode);

final String fieldName = field.name.value;
String alias = fieldName;
final fieldName = field.name.value;
var alias = fieldName;
String aliasClassName;
final bool hasAlias = field.alias != null;
final hasAlias = field.alias != null;
if (hasAlias) {
alias = field.alias.value;
aliasClassName = ReCase(alias).pascalCase;
Expand Down Expand Up @@ -277,8 +277,8 @@ List<Definition> _extractClasses(
}
if (selectionSet != null) {
final classProperties = <ClassProperty>[];
final factoryPossibilities = Set<String>();
final mixins = Set<FragmentClassDefinition>();
final factoryPossibilities = <String>{};
final mixins = <FragmentClassDefinition>{};
final queue = <Definition>[];
String classExtension;
Iterable<String> classImplementations = [];
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: Build dart types from GraphQL schemas and queries (using Introspect
homepage: https://github.com/comigor/artemis

environment:
sdk: '>=2.0.0 <3.0.0'
sdk: '>=2.6.0 <3.0.0'

dependencies:
build_config: ^0.4.0
Expand Down

0 comments on commit a71334b

Please sign in to comment.