Example #1
0
 private void addPositionMetadata(Context cx, DefinitionNode def) {
   MetaDataNode mn = cx.getNodeFactory().metaData(null, -1);
   mn.id = "__go_to_definition_help";
   mn.values = new Value[2];
   mn.values[0] = new KeyValuePair("file", cx.getErrorOrigin());
   mn.values[1] = new KeyValuePair("pos", String.valueOf(def.pos()));
   def.addMetaDataNode(mn);
 }
 public Node initializerStatement(Context cx) {
   return cx.getNodeFactory().emptyStatement();
 }