C# Class MixinRefactoring.SyntaxNodeExtension

Afficher le fichier Open project: pgenfer/mixinSharp

Méthodes publiques

Méthode Description
AsString ( this node ) : string

short cut for returning a string representation of the syntax node

FindClassByName ( this node, string name ) : Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
FindContainingClass ( this node ) : Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax

returns the first parent class where this syntax node is placed in

FindMixinReference ( this node, string name ) : Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax

Method Details

AsString() public static méthode

short cut for returning a string representation of the syntax node
public static AsString ( this node ) : string
node this
Résultat string

FindClassByName() public static méthode

public static FindClassByName ( this node, string name ) : Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
node this
name string
Résultat Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax

FindContainingClass() public static méthode

returns the first parent class where this syntax node is placed in
public static FindContainingClass ( this node ) : Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
node this
Résultat Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax

FindMixinReference() public static méthode

public static FindMixinReference ( this node, string name ) : Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax
node this
name string
Résultat Microsoft.CodeAnalysis.CSharp.Syntax.FieldDeclarationSyntax