Ejemplo n.º 1
0
 internal SymbolReference CreateRecordName(CodeElementsParser.RecordNameContext context)
 {
     // Could add here a specific property to mark the data name as a record name
     return CreateQualifiedDataName(context.qualifiedDataName());
 }
 internal Variable CreateVariable(CodeElementsParser.Variable2Context context)
 {
     SymbolReference qualifiedDataName = CobolWordsBuilder.CreateQualifiedDataName(context.qualifiedDataName());
     StorageArea storageArea = new DataOrConditionStorageArea(qualifiedDataName);
     return new Variable(storageArea);
 }
Ejemplo n.º 3
0
        internal Variable CreateVariable(CodeElementsParser.Variable2Context context)
        {
            SymbolReference qualifiedDataName = CobolWordsBuilder.CreateQualifiedDataName(context.qualifiedDataName());
            StorageArea storageArea = new DataOrConditionStorageArea(qualifiedDataName);

            // Collect storage area read/writes at the code element level
            this.storageAreaReads.Add(storageArea);

            return new Variable(storageArea);
        }