Skip to content

Commit

Permalink
nitpick(opti): unify comment format
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileRolley committed Jan 17, 2024
1 parent d0b3942 commit 369fc00
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions source/serializeParsedRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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: <rule>'
* as
* 'est non défini: <rule> = non'
Expand Down Expand Up @@ -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: <rule> . $SITUATION
// - alors: <rule>
// - sinon: <rule> . $SITUATION
//
/*
* The engine parse all rules into a root condition:
*
* - si:
* est non défini: <rule> . $SITUATION
* - alors: <rule>
* - sinon: <rule> . $SITUATION
*/
if (
sourceMap.args['dans la situation']['title'] === '$SITUATION'
) {
Expand Down

0 comments on commit 369fc00

Please sign in to comment.