mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Code style - Use file scoped namespaces
Code style - Ran code cleanup
This commit is contained in:
1 parent
e68e16df4d
commit
f6090dc296
691 files changed
+37301
-38119
No files matched your search
@@ -1,5 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Extensions.ObjectPool;
|
||||
using Microsoft.Extensions.ObjectPool;
|
||||
using Ninject.Modules;
|
||||
using NoStringEvaluating;
|
||||
using NoStringEvaluating.Contract;
|
||||
@@ -9,35 +8,34 @@ using NoStringEvaluating.Services.Checking;
|
||||
using NoStringEvaluating.Services.Parsing;
|
||||
using NoStringEvaluating.Services.Parsing.NodeReaders;
|
||||
|
||||
namespace Artemis.VisualScripting.Ninject
|
||||
namespace Artemis.VisualScripting.Ninject;
|
||||
|
||||
public class NoStringNinjectModule : NinjectModule
|
||||
{
|
||||
public class NoStringNinjectModule : NinjectModule
|
||||
public override void Load()
|
||||
{
|
||||
public override void Load()
|
||||
{
|
||||
// Pooling
|
||||
Bind<ObjectPool<Stack<InternalEvaluatorValue>>>()
|
||||
.ToConstant(ObjectPool.Create<Stack<InternalEvaluatorValue>>())
|
||||
.InSingletonScope();
|
||||
// Pooling
|
||||
Bind<ObjectPool<Stack<InternalEvaluatorValue>>>()
|
||||
.ToConstant(ObjectPool.Create<Stack<InternalEvaluatorValue>>())
|
||||
.InSingletonScope();
|
||||
|
||||
Bind<ObjectPool<List<InternalEvaluatorValue>>>()
|
||||
.ToConstant(ObjectPool.Create<List<InternalEvaluatorValue>>())
|
||||
.InSingletonScope();
|
||||
Bind<ObjectPool<List<InternalEvaluatorValue>>>()
|
||||
.ToConstant(ObjectPool.Create<List<InternalEvaluatorValue>>())
|
||||
.InSingletonScope();
|
||||
|
||||
Bind<ObjectPool<ExtraTypeIdContainer>>()
|
||||
.ToConstant(ObjectPool.Create<ExtraTypeIdContainer>())
|
||||
.InSingletonScope();
|
||||
Bind<ObjectPool<ExtraTypeIdContainer>>()
|
||||
.ToConstant(ObjectPool.Create<ExtraTypeIdContainer>())
|
||||
.InSingletonScope();
|
||||
|
||||
// Parser
|
||||
Bind<IFormulaCache>().To<FormulaCache>().InSingletonScope();
|
||||
Bind<IFunctionReader>().To<FunctionReader>().InSingletonScope();
|
||||
Bind<IFormulaParser>().To<FormulaParser>().InSingletonScope();
|
||||
// Parser
|
||||
Bind<IFormulaCache>().To<FormulaCache>().InSingletonScope();
|
||||
Bind<IFunctionReader>().To<FunctionReader>().InSingletonScope();
|
||||
Bind<IFormulaParser>().To<FormulaParser>().InSingletonScope();
|
||||
|
||||
// Checker
|
||||
Bind<IFormulaChecker>().To<FormulaChecker>().InSingletonScope();
|
||||
// Checker
|
||||
Bind<IFormulaChecker>().To<FormulaChecker>().InSingletonScope();
|
||||
|
||||
// Evaluator
|
||||
Bind<INoStringEvaluator>().To<NoStringEvaluator>().InSingletonScope();
|
||||
}
|
||||
// Evaluator
|
||||
Bind<INoStringEvaluator>().To<NoStringEvaluator>().InSingletonScope();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user