From 5e2dcc5dc5163f651dabc30eafb124310ba5df7b Mon Sep 17 00:00:00 2001 From: Jonathan Casey Date: Thu, 9 Nov 2023 15:23:55 +0000 Subject: [PATCH] feat(*): add type def Signed-off-by: Jonathan Casey --- types/lib/codegen/fromcto/golang/golangvisitor.d.ts | 7 ------- .../codegen/fromcto/xmlschema/xmlschemavisitor.d.ts | 10 ++++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/types/lib/codegen/fromcto/golang/golangvisitor.d.ts b/types/lib/codegen/fromcto/golang/golangvisitor.d.ts index 5f350707..f8588223 100644 --- a/types/lib/codegen/fromcto/golang/golangvisitor.d.ts +++ b/types/lib/codegen/fromcto/golang/golangvisitor.d.ts @@ -99,11 +99,4 @@ declare class GoLangVisitor { * @private */ private toGoPackageName; - /** - * Check if field is a Map Declaration - * @param {Field} field - the field being visited - * @return {boolean} true if field is a Map Declaration - * @private - */ - private isMap; } diff --git a/types/lib/codegen/fromcto/xmlschema/xmlschemavisitor.d.ts b/types/lib/codegen/fromcto/xmlschema/xmlschemavisitor.d.ts index 77f4b5b7..8b2d9454 100644 --- a/types/lib/codegen/fromcto/xmlschema/xmlschemavisitor.d.ts +++ b/types/lib/codegen/fromcto/xmlschema/xmlschemavisitor.d.ts @@ -42,6 +42,14 @@ declare class XmlSchemaVisitor { * @private */ private visitEnumDeclaration; + /** + * Visitor design pattern + * @param {MapDeclaration} mapDeclaration - the object being visited + * @param {Object} parameters - the parameter + * @return {Object} the result of visiting or null + * @private + */ + private visitMapDeclaration; /** * Visitor design pattern * @param {ClassDeclaration} classDeclaration - the object being visited @@ -85,6 +93,8 @@ declare class XmlSchemaVisitor { * Converts a Concerto type to a XML Schema type. Primitive types are converted * everything else is passed through unchanged. * @param {string} type - the fully qualified concerto type name + * @param {Object} mapElement - the mapElement representing either the Key or Value of a MapDeclaration + * @param {MapDeclaration} mapDeclaration - the object representing a MapDeclaration * @return {string} the corresponding type in XML Schema * @private */