diff --git a/ejson/example/main.dart b/ejson/example/main.dart new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/ejson/example/main.dart @@ -0,0 +1 @@ + diff --git a/ejson/lib/src/generator/generator.dart b/ejson/lib/src/generator/generator.dart index bc6af93319..1f65857ac3 100644 --- a/ejson/lib/src/generator/generator.dart +++ b/ejson/lib/src/generator/generator.dart @@ -20,7 +20,6 @@ class EJsonGenerator extends Generator { ), ); return ctors.map((ctor) { - final cls = ctor.enclosingElement; final className = ctor.enclosingElement.name; log.info('Generating EJson for $className');