Ver código fonte

Java parser: use 'functions' instead of 'methods'.

tags/v1.0^2
Ben Kurtovic 10 anos atrás
pai
commit
a4c428f4ff
2 arquivos alterados com 3 adições e 2 exclusões
  1. +2
    -1
      bitshift/query/__init__.py
  2. +1
    -1
      parsers/java/src/main/java/com/bitshift/parsing/symbols/JavaSymbols.java

+ 2
- 1
bitshift/query/__init__.py Ver arquivo

@@ -31,7 +31,8 @@ class _QueryParser(object):
self._parse_modified: ["m", "mod", "modified", "modify"],
self._parse_created: ["cr", "create", "created"],
self._parse_symbol: ["s", "sym", "symb", "symbol"],
self._parse_function: ["f", "fn", "fun", "func", "function"],
self._parse_function: ["f", "fn", "fun", "func", "function",
"meth", "method"],
self._parse_class: ["cl", "class", "clss"],
self._parse_variable: ["v", "var", "variable"],
self._parse_namespace: ["n", "ns", "namespace", "module"],


+ 1
- 1
parsers/java/src/main/java/com/bitshift/parsing/symbols/JavaSymbols.java Ver arquivo

@@ -141,7 +141,7 @@ public class JavaSymbols extends Symbols {
StringBuilder builder = new StringBuilder();
builder.append("\"classes\":" + this._classes + ",");
builder.append("\"interfaces\":" + this._interfaces + ",");
builder.append("\"methods\":" + this._methods + ",");
builder.append("\"functions\":" + this._methods + ",");
builder.append("\"vars\":" + this._vars + ",");

String s = builder.toString().replaceAll("=", ":");


Carregando…
Cancelar
Salvar