system/src/sc/lang/java/ModelUtil.java
public static boolean isFieldShadowedByMethod(Object obj) {
      if (obj instanceof ParamTypedMember) {
         obj = ((ParamTypedMember) obj).member;
      }
      if (obj instanceof VariableDefinition) {
         VariableDefinition varDef = (VariableDefinition) obj;
         // TODO: Not sure why this was not validated yet at this point during an incremental compile but this is the easiest fix
         varDef.ensureValidated();
         return varDef.shadowedByMethod;
      }
      return false;
   }
/** Returns true for a Java field which has the same name as one of its methods - used for JS.  Only works for source types currently. */
Returns true for a Java field which has the same name as one of its methods - used for JS.  Only works for source types currently.
Returns true for a Java field which has the same name as one of its methods - used for JS . Only works for source types currently .
public static boolean isFieldShadowedByMethod(Object obj) {
      if (obj instanceof ParamTypedMember) {
         obj = ((ParamTypedMember) obj).member;
      }
      if (obj instanceof VariableDefinition) {
         VariableDefinition varDef = (VariableDefinition) obj;
         varDef.ensureValidated();
         return varDef.shadowedByMethod;
      }
      return false;
   }
public static boolean isFieldShadowedByMethod ( Object obj ) { if ( obj instanceof ParamTypedMember ) { obj = ( ( ParamTypedMember ) obj ) . member ; } if ( obj instanceof VariableDefinition ) { VariableDefinition varDef = ( VariableDefinition ) obj ; varDef . ensureValidated ( ) ; return varDef . shadowedByMethod ; } return false ; }
Returns true for a Java field which has the same name as one of its methods - used for JS.
Returns true for a Java field which has the same name as one of its methods - used for JS .
// TODO: Not sure why this was not validated yet at this point during an incremental compile but this is the easiest fix