internal DataOrConditionStorageArea CreateDataItemReferenceOrConditionReferenceOrIndexName(CodeElementsParser.DataItemReferenceOrConditionReferenceOrIndexNameContext context) { SymbolReference qualifiedDataNameOrQualifiedConditionNameOrIndexName = CobolWordsBuilder.CreateQualifiedDataNameOrQualifiedConditionNameOrIndexName(context.qualifiedDataNameOrQualifiedConditionNameOrIndexName()); DataOrConditionStorageArea storageArea = null; if (context.subscript() == null || context.subscript().Length == 0) { storageArea = new DataOrConditionStorageArea(qualifiedDataNameOrQualifiedConditionNameOrIndexName); } else { storageArea = new DataOrConditionStorageArea(qualifiedDataNameOrQualifiedConditionNameOrIndexName, CreateSubscriptExpressions(context.subscript())); } storageArea.AlternativeSymbolType = SymbolType.IndexName; return storageArea; }
internal DataOrConditionStorageArea CreateDataItemReferenceOrConditionReference(CodeElementsParser.DataItemReferenceOrConditionReferenceContext context) { SymbolReference qualifiedDataNameOrQualifiedConditionName = CobolWordsBuilder.CreateQualifiedDataNameOrQualifiedConditionName(context.qualifiedDataNameOrQualifiedConditionName()); if (context.subscript() == null || context.subscript().Length == 0) { return new DataOrConditionStorageArea(qualifiedDataNameOrQualifiedConditionName); } else { return new DataOrConditionStorageArea(qualifiedDataNameOrQualifiedConditionName, CreateSubscriptExpressions(context.subscript())); } }