C# Class MixinRefactoring.SyntaxNodeExtension

Show file Open project: pgenfer/mixinSharp

Public Methods

Method 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 method

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

FindClassByName() public static method

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

FindContainingClass() public static method

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

FindMixinReference() public static method

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