Comparing version 1.6.0 to 1.6.1
@@ -19,2 +19,4 @@ import { Type } from './type'; | ||
type(operand: Operand): Type; | ||
} | ||
export interface IParameterManager { | ||
parameters(operand: Operand): Parameter[]; | ||
@@ -21,0 +23,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { Operand, IExpressions, IBuilder, Parameter, Format, IOperandBuilder, OperatorMetadata, ITypeManager, IModelManager, ActionObserver, FunctionAdditionalInfo, OperatorAdditionalInfo } from './contract'; | ||
import { Operand, IExpressions, IParameterManager, IBuilder, Parameter, Format, IOperandBuilder, OperatorMetadata, ITypeManager, IModelManager, ActionObserver, FunctionAdditionalInfo, OperatorAdditionalInfo } from './contract'; | ||
export declare class ExpressionsBuilder implements IBuilder<IExpressions> { | ||
@@ -10,6 +10,7 @@ build(): IExpressions; | ||
private readonly typeManager; | ||
private readonly parameterManager; | ||
private cache; | ||
private processCache; | ||
private observers; | ||
constructor(model: IModelManager, basic: IOperandBuilder, process: IOperandBuilder, typeManager: ITypeManager); | ||
constructor(model: IModelManager, basic: IOperandBuilder, process: IOperandBuilder, typeManager: ITypeManager, parameterManager: IParameterManager); | ||
private static _instance; | ||
@@ -16,0 +17,0 @@ static get instance(): IExpressions; |
@@ -14,2 +14,3 @@ "use strict"; | ||
const typeManager = new operand_1.TypeManager(model); | ||
const parameterManager = new operand_1.ParameterManager(); | ||
const normalizer = new operand_1.OperandNormalizer(model); | ||
@@ -20,3 +21,3 @@ const reducer = new operand_1.OperandReducer(model); | ||
new operand_1.CoreLibrary(model).load(); | ||
return new Expressions(model, basic, process, typeManager); | ||
return new Expressions(model, basic, process, typeManager, parameterManager); | ||
} | ||
@@ -26,3 +27,3 @@ } | ||
class Expressions { | ||
constructor(model, basic, process, typeManager) { | ||
constructor(model, basic, process, typeManager, parameterManager) { | ||
this.model = model; | ||
@@ -32,2 +33,3 @@ this.basic = basic; | ||
this.typeManager = typeManager; | ||
this.parameterManager = parameterManager; | ||
this.observers = []; | ||
@@ -86,3 +88,3 @@ this.cache = new h3lp_1.MemoryCache(); | ||
const operand = this.typed(expression); | ||
return this.typeManager.parameters(operand); | ||
return this.parameterManager.parameters(operand); | ||
} | ||
@@ -89,0 +91,0 @@ /** |
@@ -6,2 +6,3 @@ export * from './evaluators'; | ||
export * from './type'; | ||
export * from './parameters'; | ||
export * from './coreLibrary'; | ||
@@ -8,0 +9,0 @@ export * from './model'; |
@@ -22,2 +22,3 @@ "use strict"; | ||
__exportStar(require("./type"), exports); | ||
__exportStar(require("./parameters"), exports); | ||
__exportStar(require("./coreLibrary"), exports); | ||
@@ -24,0 +25,0 @@ __exportStar(require("./model"), exports); |
@@ -1,25 +0,25 @@ | ||
import { Operand, IModelManager, Type, Parameter, ITypeManager } from '../contract'; | ||
import { Operand, IModelManager, Type, Parameter, ITypeManager, OperatorMetadata } from '../contract'; | ||
export declare class TypeManager implements ITypeManager { | ||
private readonly model; | ||
protected readonly model: IModelManager; | ||
constructor(model: IModelManager); | ||
parameters(operand: Operand): Parameter[]; | ||
type(operand: Operand): Type; | ||
private solveType; | ||
private solveTemplate; | ||
private setUndefinedAsAny; | ||
private solveObject; | ||
private solveProperty; | ||
private solveArray; | ||
private solveArrow; | ||
private solveOperator; | ||
private trySolveFromMetadata; | ||
private solveTemplateArray; | ||
private solveTemplateProperty; | ||
private solveTemplateObject; | ||
private solveTemplateOperator; | ||
private getElementType; | ||
private setVariableType; | ||
private isIndeterminateType; | ||
private hadTemplate; | ||
private undefinedTypes; | ||
protected solveType(operand: Operand): void; | ||
protected solveTemplate(operand: Operand): void; | ||
protected setUndefinedAsAny(operand: Operand): void; | ||
protected solveObject(obj: Operand): void; | ||
protected solveProperty(property: Operand): void; | ||
protected solveArray(array: Operand): void; | ||
protected solveArrow(arrow: Operand): void; | ||
protected solveOperator(operator: Operand): void; | ||
protected trySolveFromMetadata(type?: string): Type | undefined; | ||
protected solveTemplateArray(array: Operand): void; | ||
protected solveTemplateProperty(property: Operand): void; | ||
protected solveTemplateObject(obj: Operand): void; | ||
protected solveTemplateOperator(operator: Operand, metadata: OperatorMetadata): void; | ||
protected getElementType(array: Operand): Type | undefined; | ||
protected setVariableType(name: string, type: Type, operand: Operand): void; | ||
protected isIndeterminateType(type?: string): boolean; | ||
protected hadTemplate(metadata: OperatorMetadata): boolean; | ||
protected undefinedTypes(operator: Operand): boolean; | ||
/** | ||
@@ -30,3 +30,3 @@ * get metadata of operand | ||
*/ | ||
private metadata; | ||
protected metadata(operator: Operand): OperatorMetadata; | ||
} |
{ | ||
"name": "3xpr", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "expressions", | ||
@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@hotmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
537092
160
6313