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

Alias experiment #1

Open
wants to merge 13 commits into
base: CPALockator-combat-mode
Choose a base branch
from

Conversation

PavelAndrianov
Copy link
Collaborator

PR just for discussion

@@ -104,6 +159,46 @@ public UsageState copy(final AbstractState pWrappedState) {
return new UsageState(pWrappedState, this);
}

private UsageState createState(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

protected? Не понадобилось переопределять?


if (variableBindingRelation.containsKey(entry.getKey())) {
if (!variableBindingRelation.get(entry.getKey()).equals(entry.getValue())) {
throw new Error("Cannot handle it yet");
Copy link
Collaborator Author

@PavelAndrianov PavelAndrianov Mar 11, 2021

Choose a reason for hiding this comment

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

UnsupportedOperationException. И сообщение нужно поприличнее, то есть явно написать, что не поддерживается. Это вы видите, что за if, а пользователь не должен искать место в коде, а по сообщению понять, что не поддерживаетс.

} else if (statement instanceof CFunctionCallStatement) {
fcExpression = ((CFunctionCallStatement) statement).getFunctionCallExpression();
} else {
return ImmutableSet.of();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Это правильно? Раньше не возвращались только ссылки. Сейчас это уже состояния.

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