C# Class MixinRefactoring.Test.ValidationHelpers

Afficher le fichier Open project: pgenfer/mixinSharp

Méthodes publiques

Méthode Description
HasSameDocumentation ( Microsoft.CodeAnalysis.SyntaxNode classDeclaration, MixinReference mixin ) : bool

checks if the documentation from the class member is the same as the one from the mixin member. This only works if both have only one member

IsPropertyBetweenRegion ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax classDeclaration, string regionName, string propertyName ) : bool

checks if a property with the given name is enclosed by a region with the given name

Method Details

HasSameDocumentation() public static méthode

checks if the documentation from the class member is the same as the one from the mixin member. This only works if both have only one member
public static HasSameDocumentation ( Microsoft.CodeAnalysis.SyntaxNode classDeclaration, MixinReference mixin ) : bool
classDeclaration Microsoft.CodeAnalysis.SyntaxNode
mixin MixinReference
Résultat bool

IsPropertyBetweenRegion() public static méthode

checks if a property with the given name is enclosed by a region with the given name
public static IsPropertyBetweenRegion ( Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax classDeclaration, string regionName, string propertyName ) : bool
classDeclaration Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
regionName string
propertyName string
Résultat bool