internal StorageArea CreateLengthOfSpecialRegister(CodeElementsParser.LengthOfSpecialRegisterContext context) { return new StorageAreaPropertySpecialRegister( ParseTreeUtils.GetFirstToken(context.LENGTH()), CreateStorageAreaReference(context.storageAreaReference())); }
internal StorageArea CreateLengthOfSpecialRegister(CodeElementsParser.LengthOfSpecialRegisterContext context) { var specialRegister = new StorageAreaPropertySpecialRegister( ParseTreeUtils.GetFirstToken(context.LENGTH()), CreateStorageAreaReference(context.storageAreaReference())); if (specialRegister.DataDescriptionEntry != null) { var dataDescription = specialRegister.DataDescriptionEntry; CobolWordsBuilder.symbolInformationForTokens[specialRegister.DataDescriptionEntry.DataName.NameLiteral.Token] = specialRegister.DataDescriptionEntry.DataName; } if (specialRegister.SymbolReference != null) { CobolWordsBuilder.symbolInformationForTokens[specialRegister.SymbolReference.NameLiteral.Token] = specialRegister.SymbolReference; } return specialRegister; }