Method | Description | |
---|---|---|
ExtractNamesToCheck ( string fullName, string settingName ) : string[] |
Extracts names that should be checked.
|
|
ExtractPureName ( string nameToCheck, bool removeAt ) : string |
Extracts pure name to check.
|
|
FindNextValueableNode ( Node |
Finds next valuable node.
|
|
FindPreviousValueableNode ( Node |
Finds previous valuable node.
|
|
GetElementByLine ( CsDocument document, int lineNumber ) : ICodeElement |
Gets first code element at specified line number.
|
|
GetElementSizeByDeclaration ( CsElement element ) : int |
Gets element size in line count.
|
|
GetExpressionByLine ( CsDocument document, int lineNumber ) : Expression |
Gets first expression at specified line number.
|
|
GetLabels ( CsElement element ) : List |
Gets labels.
|
|
GetLocalDeclarations ( CsElement element ) : List |
Gets local declarations.
|
|
GetNameWithAt ( IEnumerable |
Gets name with usage of @ character.
|
|
GetNodeByLine ( CsDocument document, int lineNumber ) : Node |
Gets first node by specified line number.
|
|
GetParameters ( CsElement element ) : List |
Gets a list of parameters for an element.
|
|
GetRootExpression ( Expression expression ) : Expression |
Finds the root expression.
|
|
GetSummaryText ( CsElement element ) : string |
Gets summary text for specified element.
|
|
GetTypeParameters ( CsElement element ) : List |
Gets a list of type parameters for an element.
|
|
IsInternal ( CsElement element ) : bool |
Checks whether specified element has internal access modifier.
|
|
IsOperator ( CsElement element ) : bool |
Checks whether specified element is operator.
|
|
IsPartial ( CsElement element ) : bool |
Checks whether specified element is partial.
|
|
IsPrivate ( CsElement element ) : bool |
Checks whether specified element has private access modifier.
|
|
IsPrivateEventHandler ( CsElement element ) : bool |
Checks whether specified element describes private event handler.
|
|
IsProtected ( CsElement element ) : bool |
Checks whether specified element has protected access modifier.
|
|
IsProtectedEventHandler ( CsElement element ) : bool |
Checks whether specified element describes protected event handler.
|
|
IsPublic ( CsElement element ) : bool |
Checks whether specified element has public access modifier.
|
|
IsStatic ( CsElement element ) : bool |
Checks whether specified element is static.
|
|
IsTestMethod ( CsElement element ) : bool |
Checks whether specified element describes test method.
|
|
MakeXml ( string text ) : |
Creates XML document from its inner text.
|
Method | Description | |
---|---|---|
CheckEventHandlerMethod ( CsElement element ) : bool |
Checks whether specified method could act as event handler.
|
|
CheckEventHandlerParameters ( StyleCop.CSharp.Method method ) : bool |
Checks whether specified method has parameters suitable for being event handler.
|
|
ConvertParameters ( IEnumerable |
Converts native parameters to parameter items.
|
|
FindByLineElementVisitor ( CsElement element, CsElement parentElement, object context ) : bool |
Tries to find code element by line.
|
|
FindByLineExpressionVisitor ( Expression expression, Expression parentExpression, Statement parentStatement, CsElement parentElement, object context ) : bool |
Tries to find expression by line.
|
|
GetLabelsStatementVisitor ( Statement statement, Expression parentExpression, Statement parentStatement, CsElement parentElement, List |
Analyzes statements for getting labels.
|
|
GetLocalDeclarationsStatementVisitor ( Statement statement, Expression parentExpression, Statement parentStatement, CsElement parentElement, List |
Analyzes statements for getting local declarations.
|
|
GetParametersExpressionVisitor ( Expression expression, Expression parentExpression, Statement parentStatement, CsElement parentElement, List |
Analyzes expression for getting parameters.
|
public static ExtractNamesToCheck ( string fullName, string settingName ) : string[] | ||
fullName | string | |
settingName | string | |
return | string[] |
public static ExtractPureName ( string nameToCheck, bool removeAt ) : string | ||
nameToCheck | string | |
removeAt | bool | |
return | string |
public static FindNextValueableNode ( Node |
||
target | Node |
|
return | Node |
public static FindPreviousValueableNode ( Node |
||
target | Node |
|
return | Node |
public static GetElementByLine ( CsDocument document, int lineNumber ) : ICodeElement | ||
document | CsDocument | |
lineNumber | int | |
return | ICodeElement |
public static GetElementSizeByDeclaration ( CsElement element ) : int | ||
element | CsElement | |
return | int |
public static GetExpressionByLine ( CsDocument document, int lineNumber ) : Expression | ||
document | CsDocument | |
lineNumber | int | |
return | Expression |
public static GetLabels ( CsElement element ) : List |
||
element | CsElement | |
return | List |
public static GetLocalDeclarations ( CsElement element ) : List |
||
element | CsElement | |
return | List |
public static GetNameWithAt ( IEnumerable |
||
fullTokens | IEnumerable |
|
fullName | string | |
return | string |
public static GetNodeByLine ( CsDocument document, int lineNumber ) : Node |
||
document | CsDocument | |
lineNumber | int | |
return | Node |
public static GetParameters ( CsElement element ) : List |
||
element | CsElement | |
return | List |
public static GetRootExpression ( Expression expression ) : Expression | ||
expression | Expression | |
return | Expression |
public static GetSummaryText ( CsElement element ) : string | ||
element | CsElement | |
return | string |
public static GetTypeParameters ( CsElement element ) : List |
||
element | CsElement | |
return | List |
public static IsInternal ( CsElement element ) : bool | ||
element | CsElement | |
return | bool |
public static IsOperator ( CsElement element ) : bool | ||
element | CsElement | |
return | bool |
public static IsPartial ( CsElement element ) : bool | ||
element | CsElement | |
return | bool |
public static IsPrivate ( CsElement element ) : bool | ||
element | CsElement | |
return | bool |
public static IsPrivateEventHandler ( CsElement element ) : bool | ||
element | CsElement | |
return | bool |
public static IsProtected ( CsElement element ) : bool | ||
element | CsElement | |
return | bool |
public static IsProtectedEventHandler ( CsElement element ) : bool | ||
element | CsElement | |
return | bool |
public static IsPublic ( CsElement element ) : bool | ||
element | CsElement | |
return | bool |
public static IsStatic ( CsElement element ) : bool | ||
element | CsElement | |
return | bool |
public static IsTestMethod ( CsElement element ) : bool | ||
element | CsElement | |
return | bool |
public static MakeXml ( string text ) : |
||
text | string | |
return |