in FlexPMD/flex-pmd-java/flex-pmd-ruleset-api/src/main/java/com/adobe/ac/pmd/rules/core/AbstractAstFlexRule.java [842:880]
private void visitClassContent( final IParserNode ast )
{
if ( isNodeNavigable( ast ) )
{
for ( final IParserNode node : ast.getChildren() )
{
if ( node.is( NodeKind.VAR_LIST ) )
{
visitVarOrConstList( node,
VariableOrConstant.VARIABLE,
VariableScope.IN_CLASS );
}
else if ( node.is( NodeKind.CONST_LIST ) )
{
visitVarOrConstList( node,
VariableOrConstant.CONSTANT,
VariableScope.IN_CLASS );
}
}
for ( final IParserNode node : ast.getChildren() )
{
if ( node.is( NodeKind.FUNCTION ) )
{
visitFunction( node,
FunctionType.NORMAL );
}
else if ( node.is( NodeKind.SET ) )
{
visitFunction( node,
FunctionType.SETTER );
}
else if ( node.is( NodeKind.GET ) )
{
visitFunction( node,
FunctionType.GETTER );
}
}
}
}