From e864b1914a5dd729ea83ac1061feeb629a691b41 Mon Sep 17 00:00:00 2001 From: Esiur Project Date: Sat, 3 Sep 2022 22:05:17 +0300 Subject: [PATCH] args --- lib/src/Resource/Template/TemplateDescriber.dart | 10 +++++++--- lib/src/Resource/Template/TypeTemplate.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/src/Resource/Template/TemplateDescriber.dart b/lib/src/Resource/Template/TemplateDescriber.dart index ef08c9e..aa21787 100644 --- a/lib/src/Resource/Template/TemplateDescriber.dart +++ b/lib/src/Resource/Template/TemplateDescriber.dart @@ -57,8 +57,12 @@ class Prop { //final bool isNullable; final String? readAnnotation; final String? writeAnnotation; + final bool recordable; + const Prop(this.name, this.type, - [this.readAnnotation = null, this.writeAnnotation = null]); + [this.readAnnotation = null, + this.writeAnnotation = null, + this.recordable = false]); } class Evt { @@ -83,11 +87,11 @@ class Const { class Func { final String name; final Type returnType; - final List argsType; + final List args; //final bool isNullable; final String? annotation; final bool isStatic; - const Func(this.name, this.returnType, this.argsType, + const Func(this.name, this.returnType, this.args, [this.annotation = null, this.isStatic = false]); } diff --git a/lib/src/Resource/Template/TypeTemplate.dart b/lib/src/Resource/Template/TypeTemplate.dart index 7ed3fe9..10a5658 100644 --- a/lib/src/Resource/Template/TypeTemplate.dart +++ b/lib/src/Resource/Template/TypeTemplate.dart @@ -205,7 +205,7 @@ class TypeTemplate { for (var i = 0; i < funcs.length; i++) { var fi = funcs[i]; - List args = fi.argsType + List args = fi.args .asMap() .entries .map((arg) => ArgumentTemplate( diff --git a/pubspec.yaml b/pubspec.yaml index 2aafcf9..9e1dd77 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: esiur description: Distributed Object Framework. -version: 2.1.1 +version: 2.1.2 #author: Ahmed Zamil homepage: https://github.com/esiur/esiur-dart