Search in sources :

Example 1 with NaBL2Config

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);
}
Also used : ISpoofaxProjectConfig(org.metaborg.spoofax.core.config.ISpoofaxProjectConfig) NaBL2Config(mb.nabl2.config.NaBL2Config)

Example 2 with 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);
}
Also used : NaBL2DebugConfig(mb.nabl2.config.NaBL2DebugConfig) NaBL2Config(mb.nabl2.config.NaBL2Config)

Example 3 with NaBL2Config

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);
}
Also used : ISpoofaxProjectConfig(org.metaborg.spoofax.core.config.ISpoofaxProjectConfig) NaBL2Config(mb.nabl2.config.NaBL2Config)

Aggregations

NaBL2Config (mb.nabl2.config.NaBL2Config)3 ISpoofaxProjectConfig (org.metaborg.spoofax.core.config.ISpoofaxProjectConfig)2 NaBL2DebugConfig (mb.nabl2.config.NaBL2DebugConfig)1