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

Remove obsolete Error() in DMParser #1674

Merged
merged 16 commits into from
Apr 9, 2024

Conversation

wixoaGit
Copy link
Member

@wixoaGit wixoaGit commented Feb 14, 2024

This removes all the uses of the obsolete Error(string message, bool throwException = true) in the compiler. Parsing errors no longer throw/catch a CompileErrorException and error handling should be generally more flexible. This also brings the total warnings when building DMCompiler from 338 to 173 (down 165).

Will need more testing to make sure error handling is in a good place.

@boring-cyborg boring-cyborg bot added the Compiler Involves the OpenDream compiler label Feb 14, 2024
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Remove a parameter only used by one thing and remove a try/finally
…rror_uses

# Conflicts:
#	DMCompiler/DM/Builders/DMProcBuilder.cs
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

…rror_uses

# Conflicts:
#	DMCompiler/Compiler/DM/DMParser.cs
#	DMCompiler/DM/Builders/DMProcBuilder.cs
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

wixoaGit added 2 commits April 9, 2024 17:09
JumpIfTrue
JumpIfNullDereference
@boring-cyborg boring-cyborg bot added the Runtime Involves the OpenDream server/runtime label Apr 9, 2024
@wixoaGit wixoaGit enabled auto-merge (squash) April 9, 2024 21:27
@wixoaGit wixoaGit merged commit e3270de into OpenDreamProject:master Apr 9, 2024
7 checks passed
@wixoaGit wixoaGit deleted the remove_obsolete_error_uses branch April 10, 2024 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler Runtime Involves the OpenDream server/runtime size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant