Grammalecte  Check-in [b26ca44482]

Overview
Comment:[core][js] gc engine: fix assignation to dErrorPriority
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | rg
Files: files | file ages | folders
SHA3-256: b26ca44482fff550dc094a26fb2e94d988d632fbc6074a22967d34805602235f
User & Date: olr on 2018-09-17 15:52:26
Other Links: branch diff | manifest | tags
Context
2018-09-18
06:42
[core][js] gc engine: fix define_from check-in: acb9d9f53e user: olr tags: core, rg
2018-09-17
15:52
[core][js] gc engine: fix assignation to dErrorPriority check-in: b26ca44482 user: olr tags: core, rg
12:07
[fr][bug] mauvais token sélectionné check-in: d877acf9d9 user: olr tags: fr, rg
Changes

Modified gc_core/js/lang_core/gc_engine.js from [c507c29b13] to [11104a6fa0].

   600    600                                   let nTokenErrorStart = (iTokenStart > 0) ? nTokenOffset + iTokenStart : nLastToken + iTokenStart;
   601    601                                   if (!this.lToken[nTokenErrorStart].hasOwnProperty("bImmune")) {
   602    602                                       let nTokenErrorEnd = (iTokenEnd > 0) ? nTokenOffset + iTokenEnd : nLastToken + iTokenEnd;
   603    603                                       let nErrorStart = this.nOffsetWithinParagraph + ((cStartLimit == "<") ? this.lToken[nTokenErrorStart]["nStart"] : this.lToken[nTokenErrorStart]["nEnd"]);
   604    604                                       let nErrorEnd = this.nOffsetWithinParagraph + ((cEndLimit == ">") ? this.lToken[nTokenErrorEnd]["nEnd"] : this.lToken[nTokenErrorEnd]["nStart"]);
   605    605                                       if (!this.dError.has(nErrorStart) || nPriority > this.dErrorPriority.gl_get(nErrorStart, -1)) {
   606    606                                           this.dError.set(nErrorStart, this._createErrorFromTokens(sWhat, nTokenOffset, nLastToken, nTokenErrorStart, nErrorStart, nErrorEnd, sLineId, sRuleId, bCaseSvty, sMessage, sURL, bShowRuleId, sOption, bContext));
   607         -                                        this.dErrorPriority[nErrorStart] = nPriority;
          607  +                                        this.dErrorPriority.set(nErrorStart, nPriority);
   608    608                                           if (bDebug) {
   609    609                                               console.log("    NEW_ERROR: ",  this.dError.get(nErrorStart));
   610    610                                           }
   611    611                                       }
   612    612                                   }
   613    613                               }
   614    614                               else if (cActionType == "~") {