diff --git a/.idea/graphql_parser.iml b/.idea/graphql_parser.iml
index 377564ba..07c18548 100644
--- a/.idea/graphql_parser.iml
+++ b/.idea/graphql_parser.iml
@@ -10,6 +10,5 @@
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
index 98dbd53e..8d82a598 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -2,7 +2,12 @@
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/angel_graphql/analysis_options.yaml b/angel_graphql/analysis_options.yaml
new file mode 100644
index 00000000..eae1e42a
--- /dev/null
+++ b/angel_graphql/analysis_options.yaml
@@ -0,0 +1,3 @@
+analyzer:
+ strong-mode:
+ implicit-casts: false
\ No newline at end of file
diff --git a/graphql_generator/analysis_options.yaml b/graphql_generator/analysis_options.yaml
new file mode 100644
index 00000000..eae1e42a
--- /dev/null
+++ b/graphql_generator/analysis_options.yaml
@@ -0,0 +1,3 @@
+analyzer:
+ strong-mode:
+ implicit-casts: false
\ No newline at end of file
diff --git a/graphql_generator/graphql_generator.iml b/graphql_generator/graphql_generator.iml
new file mode 100644
index 00000000..ba9c74b6
--- /dev/null
+++ b/graphql_generator/graphql_generator.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/graphql_parser/analysis_options.yaml b/graphql_parser/analysis_options.yaml
index 518eb901..eae1e42a 100644
--- a/graphql_parser/analysis_options.yaml
+++ b/graphql_parser/analysis_options.yaml
@@ -1,2 +1,3 @@
analyzer:
- strong-mode: true
\ No newline at end of file
+ strong-mode:
+ implicit-casts: false
\ No newline at end of file
diff --git a/graphql_parser/graphql_parser.iml b/graphql_parser/graphql_parser.iml
new file mode 100644
index 00000000..ae9af975
--- /dev/null
+++ b/graphql_parser/graphql_parser.iml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/graphql_parser/pubspec.yaml b/graphql_parser/pubspec.yaml
index c2ff0ef4..0bf80c70 100644
--- a/graphql_parser/pubspec.yaml
+++ b/graphql_parser/pubspec.yaml
@@ -4,7 +4,7 @@ description: Parses GraphQL queries and schemas.
author: Tobe O
homepage: https://github.com/thosakwe/graphql_parser
environment:
- sdk: ">=1.19.0"
+ sdk: ">=1.8.0 <3.0.0"
dependencies:
source_span: ^1.0.0
string_scanner: ^1.0.0
diff --git a/graphql_parser/test/argument_test.dart b/graphql_parser/test/argument_test.dart
index 92048c42..98e0b75c 100644
--- a/graphql_parser/test/argument_test.dart
+++ b/graphql_parser/test/argument_test.dart
@@ -37,7 +37,7 @@ class _IsArgument extends Matcher {
@override
bool matches(item, Map matchState) {
- var arg = item is ArgumentContext ? item : parseArgument(item);
+ var arg = item is ArgumentContext ? item : parseArgument(item.toString());
if (arg == null) return false;
print(arg.toSource());
return equals(name).matches(arg.name, matchState) &&
@@ -61,7 +61,7 @@ class _IsArgumentList extends Matcher {
@override
bool matches(item, Map matchState) {
var args =
- item is List ? item : parse(item).parseArguments();
+ item is List ? item : parse(item.toString()).parseArguments();
if (args.length != arguments.length) return false;
diff --git a/graphql_parser/test/directive_test.dart b/graphql_parser/test/directive_test.dart
index b4cd716a..57aac7d3 100644
--- a/graphql_parser/test/directive_test.dart
+++ b/graphql_parser/test/directive_test.dart
@@ -58,7 +58,7 @@ class _IsDirective extends Matcher {
@override
bool matches(item, Map matchState) {
- var directive = item is DirectiveContext ? item : parseDirective(item);
+ var directive = item is DirectiveContext ? item : parseDirective(item.toString());
if (directive == null) return false;
if (valueOrVariable != null) {
if (directive.valueOrVariable == null)
@@ -91,7 +91,7 @@ class _IsDirectiveList extends Matcher {
@override
bool matches(item, Map matchState) {
var args =
- item is List ? item : parse(item).parseDirectives();
+ item is List ? item : parse(item.toString()).parseDirectives();
if (args.length != directives.length) return false;
diff --git a/graphql_parser/test/field_test.dart b/graphql_parser/test/field_test.dart
index 7f5acc41..30dbc8ba 100644
--- a/graphql_parser/test/field_test.dart
+++ b/graphql_parser/test/field_test.dart
@@ -98,7 +98,7 @@ class _IsField extends Matcher {
@override
bool matches(item, Map matchState) {
- var field = item is FieldContext ? item : parseField(item);
+ var field = item is FieldContext ? item : parseField(item.toString());
if (field == null) return false;
if (fieldName != null && !fieldName.matches(field.fieldName, matchState))
return false;
@@ -122,7 +122,7 @@ class _IsFieldName extends Matcher {
@override
bool matches(item, Map matchState) {
- var fieldName = item is FieldNameContext ? item : parseFieldName(item);
+ var fieldName = item is FieldNameContext ? item : parseFieldName(item.toString());
if (realName != null)
return fieldName.alias?.alias == name && fieldName.alias?.name == realName;
else
diff --git a/graphql_parser/test/fragment_spread_test.dart b/graphql_parser/test/fragment_spread_test.dart
index 14b244ad..91bead40 100644
--- a/graphql_parser/test/fragment_spread_test.dart
+++ b/graphql_parser/test/fragment_spread_test.dart
@@ -44,7 +44,7 @@ class _IsFragmentSpread extends Matcher {
@override
bool matches(item, Map matchState) {
var spread =
- item is FragmentSpreadContext ? item : parseFragmentSpread(item);
+ item is FragmentSpreadContext ? item : parseFragmentSpread(item.toString());
if (spread == null) return false;
if (spread.name != name) return false;
if (directives != null)
diff --git a/graphql_parser/test/inline_fragment_test.dart b/graphql_parser/test/inline_fragment_test.dart
index b625f92e..8d2afbd7 100644
--- a/graphql_parser/test/inline_fragment_test.dart
+++ b/graphql_parser/test/inline_fragment_test.dart
@@ -59,7 +59,7 @@ class _IsInlineFragment extends Matcher {
@override
bool matches(item, Map matchState) {
var fragment =
- item is InlineFragmentContext ? item : parseInlineFragment(item);
+ item is InlineFragmentContext ? item : parseInlineFragment(item.toString());
if (fragment == null) return false;
if (fragment.typeCondition.typeName.name != name) return false;
if (directives != null &&
diff --git a/graphql_parser/test/selection_set_test.dart b/graphql_parser/test/selection_set_test.dart
index d881a340..ddbdf063 100644
--- a/graphql_parser/test/selection_set_test.dart
+++ b/graphql_parser/test/selection_set_test.dart
@@ -66,7 +66,7 @@ class _IsSelectionSet extends Matcher {
@override
bool matches(item, Map matchState) {
- var set = item is SelectionSetContext ? item : parseSelectionSet(item);
+ var set = item is SelectionSetContext ? item : parseSelectionSet(item.toString());
if (set == null) return false;
if (set.selections.length != selections.length) return false;
diff --git a/graphql_parser/test/type_test.dart b/graphql_parser/test/type_test.dart
index abbfbe1e..f723b3c7 100644
--- a/graphql_parser/test/type_test.dart
+++ b/graphql_parser/test/type_test.dart
@@ -64,7 +64,7 @@ class _IsListType extends Matcher {
@override
bool matches(item, Map matchState) {
- var type = item is TypeContext ? item : parseType(item);
+ var type = item is TypeContext ? item : parseType(item.toString());
if (type.listType == null) return false;
if (type.isNullable != (isNullable != false)) return false;
return innerType.matches(type.listType.type, matchState);
@@ -87,7 +87,7 @@ class _IsType extends Matcher {
@override
bool matches(item, Map matchState) {
- var type = item is TypeContext ? item : parseType(item);
+ var type = item is TypeContext ? item : parseType(item.toString());
if (type.typeName == null) return false;
var result = type.typeName.name == name;
return result && type.isNullable == !(nonNull == true);
diff --git a/graphql_parser/test/value_test.dart b/graphql_parser/test/value_test.dart
index 385b1ea7..640c5430 100644
--- a/graphql_parser/test/value_test.dart
+++ b/graphql_parser/test/value_test.dart
@@ -59,7 +59,7 @@ class _IsValue extends Matcher {
@override
bool matches(item, Map matchState) {
- var v = item is ValueContext ? item : parseValue(item);
+ var v = item is ValueContext ? item : parseValue(item.toString());
return equals(value).matches(v.value, matchState);
}
}
diff --git a/graphql_parser/test/variable_definition_test.dart b/graphql_parser/test/variable_definition_test.dart
index bd772479..0799bf35 100644
--- a/graphql_parser/test/variable_definition_test.dart
+++ b/graphql_parser/test/variable_definition_test.dart
@@ -58,7 +58,7 @@ class _IsVariableDefinition extends Matcher {
bool matches(item, Map matchState) {
var def = item is VariableDefinitionContext
? item
- : parseVariableDefinition(item);
+ : parseVariableDefinition(item.toString());
if (def == null) return false;
if (def.variable.name != name) return false;
bool result = true;
diff --git a/graphql_parser/test/variable_test.dart b/graphql_parser/test/variable_test.dart
index ee9ff10d..ac7aa566 100644
--- a/graphql_parser/test/variable_test.dart
+++ b/graphql_parser/test/variable_test.dart
@@ -29,8 +29,8 @@ class _IsVariable extends Matcher {
}
@override
- bool matches(String item, Map matchState) {
- var p = parse(item);
+ bool matches(item, Map matchState) {
+ var p = parse(item.toString());
var v = p.parseVariable();
return equals(name).matches(v?.name, matchState);
}
diff --git a/graphql_schema/analysis_options.yaml b/graphql_schema/analysis_options.yaml
new file mode 100644
index 00000000..eae1e42a
--- /dev/null
+++ b/graphql_schema/analysis_options.yaml
@@ -0,0 +1,3 @@
+analyzer:
+ strong-mode:
+ implicit-casts: false
\ No newline at end of file
diff --git a/graphql_schema/graphql_schema.iml b/graphql_schema/graphql_schema.iml
new file mode 100644
index 00000000..ba9c74b6
--- /dev/null
+++ b/graphql_schema/graphql_schema.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/graphql_server/analysis_options.yaml b/graphql_server/analysis_options.yaml
new file mode 100644
index 00000000..eae1e42a
--- /dev/null
+++ b/graphql_server/analysis_options.yaml
@@ -0,0 +1,3 @@
+analyzer:
+ strong-mode:
+ implicit-casts: false
\ No newline at end of file
diff --git a/graphql_server/graphql_server.iml b/graphql_server/graphql_server.iml
new file mode 100644
index 00000000..ba9c74b6
--- /dev/null
+++ b/graphql_server/graphql_server.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file