C# 클래스 Pchp.CodeAnalysis.Symbols.PhpRoutineSymbolExtensions

파일 보기 프로젝트 열기: iolevel/peachpie

공개 메소드들

메소드 설명
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.

메소드 상세

GetExpectedArguments() 공개 정적인 메소드

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.
리턴 Pchp.CodeAnalysis.Symbols.PhpParam[]

GetResultType() 공개 정적인 메소드

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
리턴 TypeRefMask