All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ceylon.language.meta.declaration.FunctionDeclaration.ceylon Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
import ceylon.language.meta.model{
    Type,
    Function, 
    Method
}

"""Abstraction over declarations which can be invoked, namely functions, methods and constructors """
shared sealed interface FunctionDeclaration
        satisfies FunctionOrValueDeclaration & FunctionalDeclaration {
    
    shared actual formal Function apply(Type<>* typeArguments)
            given Arguments satisfies Anything[];
    
    shared actual formal Method memberApply(Type containerType, Type<>* typeArguments)
            given Arguments satisfies Anything[];
}