use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class ShXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/sh/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class SwiftXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/swift/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class ErlangXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/erlang/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class FortranXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/fortran/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class HaskellXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/haskell/sampletags");
assertNotNull("though sampletags should stream,", res);
BufferedReader in = new BufferedReader(new InputStreamReader(res, "UTF-8"));
CtagsReader rdr = new CtagsReader();
String line;
while ((line = in.readLine()) != null) {
rdr.readLine(line);
}
return rdr.getDefinitions();
}
Aggregations