forked from jasder/antlr
v4: StringBuilder instead of StringBuffer
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9357]
This commit is contained in:
parent
89b1d52c77
commit
57eb76aab3
|
@ -143,7 +143,7 @@ public class ATNConfig {
|
|||
}
|
||||
|
||||
public String toString(Recognizer<?> recog, boolean showAlt) {
|
||||
StringBuffer buf = new StringBuffer();
|
||||
StringBuilder buf = new StringBuilder();
|
||||
// if ( state.ruleIndex>=0 ) {
|
||||
// if ( recog!=null ) buf.append(recog.getRuleNames()[state.ruleIndex]+":");
|
||||
// else buf.append(state.ruleIndex+":");
|
||||
|
@ -158,7 +158,7 @@ public class ATNConfig {
|
|||
buf.append(context);
|
||||
}
|
||||
if ( reachesIntoOuterContext>0 ) {
|
||||
buf.append("|up="+reachesIntoOuterContext);
|
||||
buf.append("|up=").append(reachesIntoOuterContext);
|
||||
}
|
||||
// if (isAccept) {
|
||||
// buf.append("|=>"+alt);
|
||||
|
|
Loading…
Reference in New Issue