C# 클래스 Pchp.CodeAnalysis.FlowAnalysis.PHPDoc

Helpers class for resolving PHPDoc types.
파일 보기 프로젝트 열기: iolevel/peachpie 1 사용 예제들

공개 메소드들

메소드 설명
GetKnownTypeMask ( TypeRefContext typeCtx, string tname ) : TypeRefMask

Gets type mask of known PHPDoc type name or 0 if such type is now known.

GetParamTag ( PHPDocBlock phpdoc, int paramIndex, string paramName ) : PHPDocBlock.ParamTag

Gets parameter type from given PHPDoc block.

GetTypeMask ( TypeRefContext targetCtx, Symbols routine, string tnames, bool fullyQualified = false ) : TypeRefMask

Gets type mask at target ctype context representing given type names from given routine.

GetTypeMask ( TypeRefContext targetCtx, TypeRefContext ctx, string tnames, NamingContext naming, bool fullyQualified = false ) : TypeRefMask

Gets type mask at target type context representing given type names from given routine.

GetTypeMask ( TypeRefContext typeCtx, string tname, NamingContext naming, bool fullyQualified = false ) : TypeRefMask

Gets type mask representing given type name.

IsKnownType ( string tname ) : bool

Gets value indicating whether given parameter represents known PHPDoc type name.

메소드 상세

GetKnownTypeMask() 공개 정적인 메소드

Gets type mask of known PHPDoc type name or 0 if such type is now known.
public static GetKnownTypeMask ( TypeRefContext typeCtx, string tname ) : TypeRefMask
typeCtx TypeRefContext
tname string
리턴 TypeRefMask

GetParamTag() 공개 정적인 메소드

Gets parameter type from given PHPDoc block.
public static GetParamTag ( PHPDocBlock phpdoc, int paramIndex, string paramName ) : PHPDocBlock.ParamTag
phpdoc PHPDocBlock
paramIndex int
paramName string
리턴 PHPDocBlock.ParamTag

GetTypeMask() 공개 정적인 메소드

Gets type mask at target ctype context representing given type names from given routine.
public static GetTypeMask ( TypeRefContext targetCtx, Symbols routine, string tnames, bool fullyQualified = false ) : TypeRefMask
targetCtx TypeRefContext
routine Symbols
tnames string
fullyQualified bool
리턴 TypeRefMask

GetTypeMask() 공개 정적인 메소드

Gets type mask at target type context representing given type names from given routine.
public static GetTypeMask ( TypeRefContext targetCtx, TypeRefContext ctx, string tnames, NamingContext naming, bool fullyQualified = false ) : TypeRefMask
targetCtx TypeRefContext
ctx TypeRefContext
tnames string
naming NamingContext
fullyQualified bool
리턴 TypeRefMask

GetTypeMask() 공개 정적인 메소드

Gets type mask representing given type name.
public static GetTypeMask ( TypeRefContext typeCtx, string tname, NamingContext naming, bool fullyQualified = false ) : TypeRefMask
typeCtx TypeRefContext
tname string
naming NamingContext
fullyQualified bool
리턴 TypeRefMask

IsKnownType() 공개 정적인 메소드

Gets value indicating whether given parameter represents known PHPDoc type name.
public static IsKnownType ( string tname ) : bool
tname string
리턴 bool