use of org.opensolaris.opengrok.analysis.CtagsReader in project OpenGrok by OpenGrok.
the class RustXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/rust/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 PLSQLXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/sql/sampleplstags");
assertNotNull("though sampleplstags 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 SQLXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/sql/samplesqltags");
assertNotNull("though samplesqltags 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 TclXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/tcl/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 VBXrefTest method getTagsDefinitions.
private Definitions getTagsDefinitions() throws IOException {
InputStream res = getClass().getClassLoader().getResourceAsStream("org/opensolaris/opengrok/analysis/vb/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