public VariableVisibility getVariableVisibility ( Node declaringNameNode ) { Node parent = declaringNameNode . getParent ( ) ; checkArgument ( parent . isVar ( ) || parent . isFunction ( ) || parent . isParamList ( ) ) ; return visibilityByDeclaringNameNode . get ( declaringNameNode ) ; }
Returns the visibility of of a variable given that variable s declaring name node .