Beispiel #1
0
 public static RealStorageSettings Create(IMainStorageContext context, IStorage parentStorage)
 {
     return(Create(context, new List <IStorage>()
     {
         parentStorage
     }));
 }
Beispiel #2
0
        public static NumberValue ConvertNullValueToNumberValue(NullValue source, IMainStorageContext mainStorageContext)
        {
            var result = new NumberValue(null);

            FillAnnotationsModalitiesAndSections(source, result, mainStorageContext);

            return(result);
        }
Beispiel #3
0
        public static RealStorageSettings Create(IMainStorageContext context, List <IStorage> parentStorages)
        {
            var result = new RealStorageSettings();

            result.MainStorageContext = context;

            result.ParentsStorages             = (parentStorages?.ToList()) ?? new List <IStorage>();
            result.DefaultSettingsOfCodeEntity = parentStorages?.FirstOrDefault()?.DefaultSettingsOfCodeEntity;

            return(result);
        }
 public InheritancePublicFactsReplicator(IMainStorageContext context, RealStorage publicFactsStorage)
     : base(context.Logger)
 {
     _context                  = context;
     _publicFactsStorage       = publicFactsStorage.LogicalStorage;
     _publicInheritanceStorage = publicFactsStorage.InheritanceStorage;
     _inheritanceResolver      = context.DataResolversFactory.GetInheritanceResolver();
     _resolverOptions          = new ResolverOptions()
     {
         AddTopType = false
     };
 }
        public StorageComponent(IMainStorageContext context, IStandaloneStorage parentStorage, KindOfStorage kindGlobalOfStorage)
            : base(context.Logger)
        {
            _context = context;
            _logicQueryParseAndCache = context.LogicQueryParseAndCache;

#if DEBUG
            //Log($"_logicQueryParseAndCache == null = {_logicQueryParseAndCache == null}");
#endif

            _parentStorage       = parentStorage;
            _kindGlobalOfStorage = kindGlobalOfStorage;
        }
 public StrongIdentifierLinearResolver(IMainStorageContext context)
     : base(context)
 {
 }
Beispiel #7
0
 private static void FillAnnotationsModalitiesAndSections(AnnotatedItem source, AnnotatedItem dest, IMainStorageContext mainStorageContext)
 {
     dest.AppendAnnotations(source);
 }
Beispiel #8
0
        public static NumberValue ConvertLogicalValueToNumberValue(LogicalValue source, IMainStorageContext mainStorageContext)
        {
            var result = new NumberValue(source.AsLogicalValue.SystemValue);

            FillAnnotationsModalitiesAndSections(source, result, mainStorageContext);

            return(result);
        }
Beispiel #9
0
 public TriggersResolver(IMainStorageContext context)
     : base(context)
 {
 }
 public MethodsResolver(IMainStorageContext context)
     : base(context)
 {
 }
Beispiel #11
0
 public ChannelsResolver(IMainStorageContext context)
     : base(context)
 {
 }
 public InheritanceResolver(IMainStorageContext context)
     : base(context)
 {
 }
Beispiel #13
0
 public BinaryOperatorNode(IMainStorageContext context)
     : base(context)
 {
 }
Beispiel #14
0
 protected BaseResolver(IMainStorageContext context)
     : base(context.Logger)
 {
     _context = context;
 }
Beispiel #15
0
 public DataResolversFactory(IMainStorageContext context)
     : base(context.Logger)
 {
     _context = context;
 }
 public OperatorsResolver(IMainStorageContext context)
     : base(context)
 {
 }
 public ExpressionNode(IMainStorageContext context)
     : base(context)
 {
 }
Beispiel #18
0
 public CodeBlockNode(IMainStorageContext context)
     : base(context)
 {
 }
Beispiel #19
0
 public BaseInstancesStorageComponent(IMainStorageContext context)
     : base(context.Logger)
 {
     _context = context;
 }
Beispiel #20
0
 public FuzzyLogicResolver(IMainStorageContext context)
     : base(context)
 {
 }
 public NumberValueLinearResolver(IMainStorageContext context)
     : base(context)
 {
 }
Beispiel #22
0
 protected BaseNode(IMainStorageContext context)
     : base(context.Logger)
 {
     _context = context;
 }
Beispiel #23
0
 public Compiler(IMainStorageContext context)
     : base(context.Logger)
 {
     _context = context;
 }
Beispiel #24
0
 public CommonNamesStorage(IMainStorageContext context)
     : base(context.Logger)
 {
     _context = context;
 }
Beispiel #25
0
 public VarsResolver(IMainStorageContext context)
     : base(context)
 {
 }
Beispiel #26
0
 public EntityConditionNode(IMainStorageContext context)
     : base(context)
 {
 }
 public LogicalValueLinearResolver(IMainStorageContext context)
     : base(context)
 {
 }
Beispiel #28
0
 public AstErrorStatementNode(IMainStorageContext context)
     : base(context)
 {
 }
 public BaseLoaderFromSourceCode(IMainStorageContext context)
     : base(context.Logger)
 {
     _context = context;
 }
 public UseInheritanceStatementNode(IMainStorageContext context)
     : base(context)
 {
 }