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

Even more comments #6

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Miepee
Copy link
Contributor

@Miepee Miepee commented Jun 3, 2024

No description provided.

.idea/.idea.Underanalyzer/.idea/.gitignore Outdated Show resolved Hide resolved
Underanalyzer/Decompiler/DecompileContext.cs Show resolved Hide resolved
Underanalyzer/Decompiler/DecompileContext.cs Show resolved Hide resolved
Underanalyzer/Decompiler/GlobalFunctions.cs Outdated Show resolved Hide resolved
/// Optionally, <see cref="ParallelOptions"/> can be passed in to configure parallelization.
/// By default, the default settings are used (which has no limits).
/// By default, the default settings are used (which have no limits). TODO: no limits on what???
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was just specifying that the default ParallelOptions has no limit on the amount of threads it can use. Also yeah, maybe could abstract out the inner loop into a private function that can be called with a regular foreach? (in an overload)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i meant the overload more because of options = null.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather resolve this before putting TODOs straight into the summary, lol.

Underanalyzer/Decompiler/GlobalFunctions.cs Outdated Show resolved Hide resolved
Underanalyzer/Decompiler/GlobalFunctions.cs Show resolved Hide resolved
}
break;
}
// TODO: default case?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just instruction pattern matching, it falls through to the return null; afterwards if none of the conditions fully succeed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not what i meant. the todo was specifically referring to "Explicitly document all expected paths, and reserve default for unexpected value"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still not sure why this needs to be here. The default case just means there's no function name to be found.

Copy link
Member

@colinator27 colinator27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK so just a few final nitpicky things before this is all set, I just don't want to make the code any more cluttered by adding TODOs into places that should really just get resolved (or if they potentially should just be in a GitHub issue)

}
break;
}
// TODO: default case?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still not sure why this needs to be here. The default case just means there's no function name to be found.

/// Optionally, <see cref="ParallelOptions"/> can be passed in to configure parallelization.
/// By default, the default settings are used (which has no limits).
/// By default, the default settings are used (which have no limits). TODO: no limits on what???
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather resolve this before putting TODOs straight into the summary, lol.

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