C# Class Pchp.CodeAnalysis.AstUtils

Mostrar archivo Open project: iolevel/peachpie

Public Methods

Method Description
BodySpanOrInvalid ( this routine ) : Span
HasThisVariable ( MethodDecl method ) : bool

Determines whether method has $this variable.

IsAppStatic ( this field ) : bool

Lookups notation determining given field as app-static instead of context-static.

LinePosition ( this lines, int pos ) : LinePosition

Gets Microsoft.CodeAnalysis.Text.LinePosition from source position.

PatchItemUse ( ItemUse item ) : void

Fixes ItemUse so it propagates correctly through our visitor.

IsMemberOf will be set on Array, not ItemUse itself.

Method Details

BodySpanOrInvalid() public static method

public static BodySpanOrInvalid ( this routine ) : Span
routine this
return Span

HasThisVariable() public static method

Determines whether method has $this variable.
public static HasThisVariable ( MethodDecl method ) : bool
method MethodDecl
return bool

IsAppStatic() public static method

Lookups notation determining given field as app-static instead of context-static.
public static IsAppStatic ( this field ) : bool
field this
return bool

LinePosition() public static method

Gets Microsoft.CodeAnalysis.Text.LinePosition from source position.
public static LinePosition ( this lines, int pos ) : LinePosition
lines this
pos int
return LinePosition

PatchItemUse() public static method

Fixes ItemUse so it propagates correctly through our visitor.
IsMemberOf will be set on Array, not ItemUse itself.
public static PatchItemUse ( ItemUse item ) : void
item ItemUse
return void