@@ -217,7 +217,7 @@ export class BidsSidecar extends BidsJsonFile {
217217 this . parsedHedData . set ( name , sidecarKey . parsedCategoryMap )
218218 }
219219 }
220- this . #generateSidecarColumnSpliceMap ( )
220+ this . _generateSidecarColumnSpliceMap ( )
221221 return [ errors , warnings ]
222222 }
223223
@@ -226,33 +226,33 @@ export class BidsSidecar extends BidsJsonFile {
226226 *
227227 * @private
228228 */
229- #generateSidecarColumnSpliceMap ( ) {
229+ _generateSidecarColumnSpliceMap ( ) {
230230 this . columnSpliceMapping = new Map ( )
231231 this . columnSpliceReferences = new Set ( )
232232
233233 for ( const [ sidecarKey , hedData ] of this . parsedHedData ) {
234234 if ( hedData instanceof ParsedHedString ) {
235- this . #parseValueSplice ( sidecarKey , hedData )
235+ this . _ ( sidecarKey , hedData )
236236 } else if ( hedData instanceof Map ) {
237- this . #parseCategorySplice ( sidecarKey , hedData )
237+ this . _parseCategorySplice ( sidecarKey , hedData )
238238 } else if ( hedData ) {
239239 IssueError . generateAndThrowInternalError ( 'Unexpected type found in sidecar parsedHedData map.' )
240240 }
241241 }
242242 }
243243
244- #parseValueSplice ( sidecarKey , hedData ) {
244+ _ ( sidecarKey , hedData ) {
245245 if ( hedData . columnSplices . length > 0 ) {
246- const keyReferences = this . #processColumnSplices ( new Set ( ) , hedData . columnSplices )
246+ const keyReferences = this . _processColumnSplices ( new Set ( ) , hedData . columnSplices )
247247 this . columnSpliceMapping . set ( sidecarKey , keyReferences )
248248 }
249249 }
250250
251- #parseCategorySplice ( sidecarKey , hedData ) {
251+ _parseCategorySplice ( sidecarKey , hedData ) {
252252 let keyReferences = null
253253 for ( const valueString of hedData . values ( ) ) {
254254 if ( valueString ?. columnSplices . length > 0 ) {
255- keyReferences = this . #processColumnSplices ( keyReferences , valueString . columnSplices )
255+ keyReferences = this . _processColumnSplices ( keyReferences , valueString . columnSplices )
256256 }
257257 }
258258 if ( keyReferences instanceof Set ) {
@@ -267,7 +267,7 @@ export class BidsSidecar extends BidsJsonFile {
267267 * @returns {Set<string> }
268268 * @private
269269 */
270- #processColumnSplices ( keyReferences , columnSplices ) {
270+ _processColumnSplices ( keyReferences , columnSplices ) {
271271 keyReferences ??= new Set ( )
272272 for ( const columnSplice of columnSplices ) {
273273 keyReferences . add ( columnSplice . originalTag )
@@ -358,9 +358,9 @@ export class BidsSidecarKey {
358358 */
359359 parseHed ( hedSchemas ) {
360360 if ( this . isValueKey ) {
361- return this . #parseValueString ( hedSchemas )
361+ return this . _parseValueString ( hedSchemas )
362362 }
363- return this . #parseCategory ( hedSchemas )
363+ return this . _parseCategory ( hedSchemas )
364364 }
365365
366366 /**
@@ -373,8 +373,8 @@ export class BidsSidecarKey {
373373 * @returns {Array } - [Issue[], Issue[]] - Errors due for the value.
374374 * @private
375375 */
376- #parseValueString ( hedSchemas ) {
377- const [ parsedString , errorIssues , warningIssues ] = parseHedString ( this . valueString , hedSchemas , false , true )
376+ _parseValueString ( hedSchemas ) {
377+ const [ parsedString , errorIssues , warningIssues ] = parseHedString ( this . valueString , hedSchemas , false , true , false )
378378 this . parsedValueString = parsedString
379379 return [ errorIssues , warningIssues ]
380380 }
@@ -385,7 +385,7 @@ export class BidsSidecarKey {
385385 * @returns {Array } - Array[Issue[], Issue[]] A list of error issues and warning issues.
386386 * @private
387387 */
388- #parseCategory ( hedSchemas ) {
388+ _parseCategory ( hedSchemas ) {
389389 this . parsedCategoryMap = new Map ( )
390390 const errors = [ ]
391391 const warnings = [ ]
@@ -399,7 +399,7 @@ export class BidsSidecarKey {
399399 file : this . sidecar ?. file ?. relativePath ,
400400 } )
401401 }
402- const [ parsedString , errorIssues , warningIssues ] = parseHedString ( string , hedSchemas , true , true )
402+ const [ parsedString , errorIssues , warningIssues ] = parseHedString ( string , hedSchemas , true , true , false )
403403 this . parsedCategoryMap . set ( value , parsedString )
404404 warnings . push ( ...warningIssues )
405405 errors . push ( ...errorIssues )
0 commit comments