C# Class Pchp.CodeAnalysis.AstUtils

Afficher le fichier Open project: iolevel/peachpie

Méthodes publiques

Méthode 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 méthode

public static BodySpanOrInvalid ( this routine ) : Span
routine this
Résultat Span

HasThisVariable() public static méthode

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

IsAppStatic() public static méthode

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

LinePosition() public static méthode

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

PatchItemUse() public static méthode

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
Résultat void