305306307308309310311312313314315
Argument replacement = document.parseArgument(getLine()); boolean ok = current.isBranch() || s.variableTokenToBranch(knownArguments); if (!ok) return; // TODO: What about current.isRoot()? if (replacement!=null) { s.replace(replacement); } s.prependNewSibling(); clear(); }
319320321322323324325326327328329
Cursor c = s.getCursor(); Argument replacement = document.parseArgument(getLine()); boolean ok = current.isBranch() || s.variableTokenToBranch(knownArguments); if (!ok) return; if (replacement!=null) { s.replace(replacement); } s.appendNewChild(); clear(); }
333334335336337338339340341342343
Cursor c = s.getCursor(); Argument replacement = document.parseArgument(getLine()); boolean ok = current.isBranch() || s.variableTokenToBranch(knownArguments); if (!ok) return; if (replacement!=null) { s.replace(replacement); } s.prependNewChild(); clear(); }