use of com.perl5.lang.perl.idea.project.PerlNamesCache in project Perl5-IDEA by Camelcade.
the class PerlParserTestBase method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
registerApplicationService(TemplateDataLanguageMappings.class, new TemplateDataLanguageMappings(getProject()));
registerApplicationService(TemplateDataLanguagePatterns.class, new TemplateDataLanguagePatterns());
addExplicitExtension(LanguageParserDefinitions.INSTANCE, PerlLanguage.INSTANCE, new PerlParserDefinition());
addExplicitExtension(LanguageParserDefinitions.INSTANCE, PodLanguage.INSTANCE, new PodParserDefinition());
registerComponentInstance(myProject, PerlNamesCache.class, new PerlNamesCache(myProject));
registerExtensionPoint(PerlParserExtension.EP_NAME, PerlParserExtension.class);
registerExtension(PerlParserExtension.EP_NAME, new MooseParserExtension());
registerExtension(PerlParserExtension.EP_NAME, new PerlSwitchParserExtensionImpl());
registerExtension(PerlParserExtension.EP_NAME, new ClassAccessorParserExtension());
registerExtension(PerlParserExtension.EP_NAME, new MojoParserExtension());
PerlParserExtensions parserExtensions = new PerlParserExtensions();
registerComponentInstance(ApplicationManager.getApplication(), PerlParserExtensions.class, parserExtensions);
parserExtensions.initComponent();
PerlPackageProcessorEP.EP.addExplicitExtension("constant", new ConstantProcessor());
PerlPackageProcessorEP.EP.addExplicitExtension("vars", new VarsProcessor());
PerlPackageProcessorEP.EP.addExplicitExtension("Exception::Class", new ExceptionClassProcessor());
myProject.registerService(PerlSharedSettings.class, new PerlSharedSettings(getProject()));
}
Aggregations