public override string ToString() { if (StorageArea != null) { return(StorageArea.ToString()); } return(base.ToString()); }
public StorageAreaPropertySpecialRegister(Token specialRegisterName, StorageArea storageAreaReference) : base(StorageAreaKind.StorageAreaPropertySpecialRegister) { SpecialRegisterName = specialRegisterName; OtherStorageAreaReference = storageAreaReference; // This is both a storage area definition and a reference to the same storage area var storageAreaName = storageAreaReference != null?storageAreaReference.ToString() : "null"; DataDescriptionEntry = new SpecialRegisterDescriptionEntry(specialRegisterName, storageAreaName); SymbolReference = new SymbolReference(DataDescriptionEntry.DataName); }
public StorageAreaPropertySpecialRegister(Token specialRegisterName, StorageArea storageAreaReference) : base(StorageAreaKind.StorageAreaPropertySpecialRegister) { SpecialRegisterName = specialRegisterName; OtherStorageAreaReference = storageAreaReference; // This is both a storage area definition and a reference to the same storage area var storageAreaName = storageAreaReference != null ? storageAreaReference.ToString() : "null"; DataDescriptionEntry = new SpecialRegisterDescriptionEntry(specialRegisterName, storageAreaName); SymbolReference = new SymbolReference(DataDescriptionEntry.DataName); }