C# Class Pchp.CodeAnalysis.Symbols.PhpRoutineSymbolExtensions

Afficher le fichier Open project: iolevel/peachpie

Méthodes publiques

Méthode Description
GetExpectedArguments ( this routine, TypeRefContext ctx ) : Pchp.CodeAnalysis.Symbols.PhpParam[]

Resolves list of input arguments. Implicit parameters passed by compiler are ignored.

GetResultType ( this symbol, TypeRefContext ctx ) : TypeRefMask

Gets expected return type mask of given symbol (field, function, method or property).

Returned type mask corresponds to types that can be returned by invoking given symbol.

Method Details

GetExpectedArguments() public static méthode

Resolves list of input arguments. Implicit parameters passed by compiler are ignored.
public static GetExpectedArguments ( this routine, TypeRefContext ctx ) : Pchp.CodeAnalysis.Symbols.PhpParam[]
routine this Routine.
ctx Pchp.CodeAnalysis.FlowAnalysis.TypeRefContext TYpe context to transmer type masks into.
Résultat Pchp.CodeAnalysis.Symbols.PhpParam[]

GetResultType() public static méthode

Gets expected return type mask of given symbol (field, function, method or property).
Returned type mask corresponds to types that can be returned by invoking given symbol.
public static GetResultType ( this symbol, TypeRefContext ctx ) : TypeRefMask
symbol this
ctx Pchp.CodeAnalysis.FlowAnalysis.TypeRefContext
Résultat TypeRefMask