Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test to become 1 commit #122

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

DiFerMa
Copy link

@DiFerMa DiFerMa commented Dec 17, 2024

Detecting duplicated components

Add check to detect duplicated components of a record when parsing a TRLC file.

Example:

Something duplicated
{
	description = "This is fine!"
	description = "This is the duplicate."
}

The behavior of the Record_Object class is changed such that the assign method only assigns components to the record if it has not been assigned already. This is implemented by checking if the field type is different from Implicit_Null.

The Parser class asks the Record_Object if the component is Implicit_Null. If no, then an error is sent to the message handler.

@DiFerMa DiFerMa force-pushed the utility/try_to_automate_squashing branch from 0f207a5 to 48c62fe Compare December 17, 2024 13:09
Detecting duplicated components

Add check to detect duplicated components of a record
when parsing a TRLC file.

Example:
```
Something duplicated
{
	description = "This is fine!"
	description = "This is the duplicate."
}
```

The behavior of the `Record_Object` class is changed such that the `assign` method only
assigns components to the record if it has not been assigned already.
This is implemented by checking if the field type is different from `Implicit_Null`.

The `Parser` class asks the `Record_Object` if the component is `Implicit_Null`.
If no, then an error is sent to the message handler.
@DiFerMa DiFerMa force-pushed the utility/try_to_automate_squashing branch from 03fb6a8 to d8f23f7 Compare December 17, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants