public static List < Node > findLhsNodesInNode ( Node assigningParent ) { checkArgument ( isNameDeclaration ( assigningParent ) || assigningParent . isParamList ( ) || isAssignmentOp ( assigningParent ) || assigningParent . isCatch ( ) || assigningParent . isDestructuringLhs ( ) || assigningParent . isDefaultValue ( ) || assigningParent . isImport ( ) // enhanced for loops assign to loop variables || isEnhancedFor ( assigningParent ) , assigningParent ) ; ArrayList < Node > lhsNodes = new ArrayList <> ( ) ; getLhsNodesHelper ( assigningParent , lhsNodes ) ; return lhsNodes ; }
Retrieves lhs nodes declared or assigned in a given assigning parent node .