Ejemplo n.º 1
0
 public NumericVariableOperand(NumericVariable variable)
     : base(ExpressionNodeType.NumericVariable)
 {
     NumericVariable = variable;
 }
Ejemplo n.º 2
0
 public NumericVariableOperand(NumericVariable variable) : base(ExpressionNodeType.NumericVariable)
 {
     NumericVariable = variable;
 }
Ejemplo n.º 3
0
        internal NumericVariable CreateNumericVariableOrIndex(CodeElementsParser.NumericVariableOrIndexContext context)
        {
            NumericVariable variable = null;
            if (context.identifierOrIndexName() != null)
            {
                variable = new NumericVariable(
                    CreateIdentifierOrIndexName(context.identifierOrIndexName()));
            }
            else
            {
                variable = new NumericVariable(
                    CobolWordsBuilder.CreateNumericValue(context.numericValue()));
            }

            // Collect storage area read/writes at the code element level
            if (variable.StorageArea != null)
            {
                this.storageAreaReads.Add(variable.StorageArea);
            }

            return variable;
        }
Ejemplo n.º 4
0
        internal NumericVariable CreateNumericVariable(CodeElementsParser.NumericVariable2Context context)
        {
            var variable = new NumericVariable(
                    new DataOrConditionStorageArea(
                        CobolWordsBuilder.CreateDataNameReference(context.dataNameReference())));

            // Collect storage area read/writes at the code element level
            if (variable.StorageArea != null)
            {
                this.storageAreaReads.Add(variable.StorageArea);
            }

            return variable;
        }
Ejemplo n.º 5
0
        internal NumericVariable CreateNumericVariable(CodeElementsParser.NumericVariable1Context context)
        {
            var variable = new NumericVariable(
                CreateIdentifier(context.identifier()));

            // Collect storage area read/writes at the code element level
            if (variable.StorageArea != null)
            {
                this.storageAreaReads.Add(variable.StorageArea);
            }

            return variable;
        }
Ejemplo n.º 6
0
 public virtual bool Visit(NumericVariable numericVariable)
 {
     return(true);
 }