use of mb.nabl2.config.NaBL2Config in project spoofax by metaborg.
the class SingleFileScopeGraphContextFactory method create.
@Override
public ISingleFileScopeGraphContext create(ContextIdentifier identifier) {
final ISpoofaxProjectConfig config = configService.get(identifier.project);
final NaBL2Config nabl2Config = config != null ? config.nabl2Config() : null;
return new SingleFileScopeGraphContext(injector, identifier, nabl2Config);
}
use of mb.nabl2.config.NaBL2Config in project spoofax by metaborg.
the class NaBL2ConfigReaderWriter method read.
public static NaBL2Config read(HierarchicalConfiguration<ImmutableNode> config) {
final boolean incremental = config.getBoolean(PROP_INCREMENTAL, false);
final NaBL2DebugConfig debug = NaBL2DebugConfig.of(readFlags(config.getString(PROP_DEBUG, "")));
return new NaBL2Config(incremental, debug);
}
use of mb.nabl2.config.NaBL2Config in project spoofax by metaborg.
the class MultiFileScopeGraphContextFactory method create.
@Override
public IMultiFileScopeGraphContext create(ContextIdentifier identifier) {
final ISpoofaxProjectConfig config = configService.get(identifier.project);
final NaBL2Config nabl2Config = config != null ? config.nabl2Config() : null;
return new MultiFileScopeGraphContext(injector, identifier, nabl2Config);
}
Aggregations