public void newBraces(EditorState editorState,char ch){
  String casName=argumentHelper.readCharacters(editorState);
  if (ch == FUNCTION_OPEN_KEY && metaModel.isGeneral(casName)) {
    delCharacters(editorState,casName.length());
    newFunction(editorState,casName);
  }
 else   if (ch == FUNCTION_OPEN_KEY && metaModel.isFunction(casName)) {
    delCharacters(editorState,casName.length());
    newFunction(editorState,casName);
  }
 else {
    newArray(editorState,1,ch);
  }
}

public void newBraces ( EditorState editorState , char ch ) { String casName = argumentHelper . readCharacters ( editorState ) ; if ( ch == FUNCTION_OPEN_KEY && metaModel . isGeneral ( casName ) ) { delCharacters ( editorState , casName . length ( ) ) ; newFunction ( editorState , casName ) ; } else if ( ch == FUNCTION_OPEN_KEY && metaModel . isFunction ( casName ) ) { delCharacters ( editorState , casName . length ( ) ) ; newFunction ( editorState , casName ) ; } else { newArray ( editorState , 1 , ch ) ; } }
insert braces ( ) , [ ] , { } , " " .
