/*
 * Copyright (c) 2018, 2025, Oracle and/or its affiliates.
 * Licensed under The Universal Permissive License (UPL), Version 1.0
 * as shown at https://oss.oracle.com/licenses/upl/
 */
var RuleContext=function(){};RuleContext.prototype.setNode=function(node){this.node=node;if(!this.position)this.position={};this.position.start=node.startIndex;this.position.end=node.endIndex};RuleContext.prototype.setPosition=function(row,col){this.position={line:row,col:col}};RuleContext.prototype.clearPosition=function(){if(this.position){if(typeof this.position.line!=="undefined"){delete this.position.line}if(typeof this.position.col!=="undefined"){delete this.position.col}}};module.exports=RuleContext;