mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 18:35:32 +02:00
Renamed ParserConfiguration to TestParserConfiguration and made it
private.
This commit is contained in:
parent
cb9d63e661
commit
05841be5fc
1 changed files with 3 additions and 4 deletions
|
@ -112,13 +112,12 @@ public class DOMLocationInclusionTests extends AST2FileBasePluginTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ParserConfiguration implements IParserConfiguration {
|
private class TestParserConfiguration implements IParserConfiguration {
|
||||||
|
|
||||||
private final IScannerInfo info;
|
private final IScannerInfo info;
|
||||||
|
|
||||||
private final String dialect;
|
private final String dialect;
|
||||||
|
|
||||||
public ParserConfiguration(IScannerInfo s, IFile code) {
|
public TestParserConfiguration(IScannerInfo s, IFile code) {
|
||||||
this.info = s;
|
this.info = s;
|
||||||
String filename = code.getLocation().toOSString();
|
String filename = code.getLocation().toOSString();
|
||||||
IProject prj = code.getProject();
|
IProject prj = code.getProject();
|
||||||
|
@ -170,7 +169,7 @@ public class DOMLocationInclusionTests extends AST2FileBasePluginTestCase {
|
||||||
return CDOM.getInstance().getTranslationUnit(
|
return CDOM.getInstance().getTranslationUnit(
|
||||||
code,
|
code,
|
||||||
CDOM.getInstance().getCodeReaderFactory(CDOM.PARSE_SAVED_RESOURCES),
|
CDOM.getInstance().getCodeReaderFactory(CDOM.PARSE_SAVED_RESOURCES),
|
||||||
new ParserConfiguration(s, code));
|
new TestParserConfiguration(s, code));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void assertSoleFileLocation(IASTNode n, String pathEndsWith, int offset, int length) {
|
protected void assertSoleFileLocation(IASTNode n, String pathEndsWith, int offset, int length) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue