Lines 8937-8943
Link Here
|
8937 |
this.recoveryScanner.getData(); |
8937 |
this.recoveryScanner.getData(); |
8938 |
} |
8938 |
} |
8939 |
|
8939 |
|
8940 |
if (this.methodRecoveryActivated) { |
8940 |
if (this.methodRecoveryActivated && this.options.performStatementsRecovery) { |
8941 |
this.methodRecoveryActivated = false; |
8941 |
this.methodRecoveryActivated = false; |
8942 |
this.recoverStatements(); |
8942 |
this.recoverStatements(); |
8943 |
this.methodRecoveryActivated = true; |
8943 |
this.methodRecoveryActivated = true; |
Lines 8959-8965
Link Here
|
8959 |
//convert bugs into parse error |
8959 |
//convert bugs into parse error |
8960 |
|
8960 |
|
8961 |
boolean oldMethodRecoveryActivated = this.methodRecoveryActivated; |
8961 |
boolean oldMethodRecoveryActivated = this.methodRecoveryActivated; |
8962 |
if(this.options.performStatementsRecovery) { |
8962 |
if(this.options.performMethodsFullRecovery) { |
8963 |
this.methodRecoveryActivated = true; |
8963 |
this.methodRecoveryActivated = true; |
8964 |
} |
8964 |
} |
8965 |
|
8965 |
|
Lines 9139-9145
Link Here
|
9139 |
//convert bugs into parse error |
9139 |
//convert bugs into parse error |
9140 |
|
9140 |
|
9141 |
boolean oldMethodRecoveryActivated = this.methodRecoveryActivated; |
9141 |
boolean oldMethodRecoveryActivated = this.methodRecoveryActivated; |
9142 |
if(this.options.performStatementsRecovery) { |
9142 |
if(this.options.performMethodsFullRecovery) { |
9143 |
this.methodRecoveryActivated = true; |
9143 |
this.methodRecoveryActivated = true; |
9144 |
} |
9144 |
} |
9145 |
|
9145 |
|
Lines 9201-9207
Link Here
|
9201 |
return; |
9201 |
return; |
9202 |
|
9202 |
|
9203 |
boolean oldMethodRecoveryActivated = this.methodRecoveryActivated; |
9203 |
boolean oldMethodRecoveryActivated = this.methodRecoveryActivated; |
9204 |
if(this.options.performStatementsRecovery) { |
9204 |
if(this.options.performMethodsFullRecovery) { |
9205 |
this.methodRecoveryActivated = true; |
9205 |
this.methodRecoveryActivated = true; |
9206 |
this.rParenPos = md.sourceEnd; |
9206 |
this.rParenPos = md.sourceEnd; |
9207 |
} |
9207 |
} |
Lines 9976-9982
Link Here
|
9976 |
/* attempt to reset state in order to resume to parse loop */ |
9976 |
/* attempt to reset state in order to resume to parse loop */ |
9977 |
return this.resumeAfterRecovery(); |
9977 |
return this.resumeAfterRecovery(); |
9978 |
} |
9978 |
} |
|
|
9979 |
public void setMethodsFullRecovery(boolean enabled) { |
9980 |
this.options.performMethodsFullRecovery = enabled; |
9981 |
} |
9979 |
public void setStatementsRecovery(boolean enabled) { |
9982 |
public void setStatementsRecovery(boolean enabled) { |
|
|
9983 |
if(enabled) this.options.performMethodsFullRecovery = true; |
9980 |
this.options.performStatementsRecovery = enabled; |
9984 |
this.options.performStatementsRecovery = enabled; |
9981 |
} |
9985 |
} |
9982 |
public String toString() { |
9986 |
public String toString() { |