public FunctionPointer(IVariableDeclarationSyntax declaration, string name, ImmutableArray <IType> parametersTypes, IType returnType) : base(name, parametersTypes, ImmutableArray <IType> .Empty, returnType) { this.declaration = declaration; }
public IType BindVariableType(IVariableDeclarationSyntax variable) { return(variable is InferredVariableDeclarationSyntax inferred ? BindInferredVariable(inferred) : BindType(variable.Type !)); }