From 369fc005f2d8da23f6fafa9222b45212ec21b2c6 Mon Sep 17 00:00:00 2001 From: Emile Rolley Date: Wed, 17 Jan 2024 13:17:17 +0100 Subject: [PATCH] nitpick(opti): unify comment format --- source/serializeParsedRules.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/source/serializeParsedRules.ts b/source/serializeParsedRules.ts index 8e88dc4..041a768 100644 --- a/source/serializeParsedRules.ts +++ b/source/serializeParsedRules.ts @@ -35,7 +35,8 @@ function serializeValue(node: ASTNode, needParens = false): SerializedRule { case 'operation': { switch (node?.sourceMap?.mecanismName) { - /* All these mecanisms are inlined with simplier ones. Therefore, + /* + * All these mecanisms are inlined with simplier ones. Therefore, * we need to serialize the sourceMap in order to retrieve the * original mecanism. * @@ -49,7 +50,8 @@ function serializeValue(node: ASTNode, needParens = false): SerializedRule { case 'moyenne': case 'une de ces conditions': case 'toutes ces conditions': - /* The engine parse the mecanism + /* + * The engine parse the mecanism * 'est défini: ' * as * 'est non défini: = non' @@ -226,13 +228,14 @@ function serializeASTNode(node: ASTNode): SerializedRule { const mecanismName = sourceMap?.mecanismName switch (mecanismName) { case 'dans la situation': { - // The engine parse all rules into a root condition: - // - // - si: - // est non défini: . $SITUATION - // - alors: - // - sinon: . $SITUATION - // + /* + * The engine parse all rules into a root condition: + * + * - si: + * est non défini: . $SITUATION + * - alors: + * - sinon: . $SITUATION + */ if ( sourceMap.args['dans la situation']['title'] === '$SITUATION' ) {