-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: CPALockator-combat-mode
Are you sure you want to change the base?
Conversation
@@ -104,6 +159,46 @@ public UsageState copy(final AbstractState pWrappedState) { | |||
return new UsageState(pWrappedState, this); | |||
} | |||
|
|||
private UsageState createState( |
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это правильно? Раньше не возвращались только ссылки. Сейчас это уже состояния.
PR just for discussion