system/src/sc/lang/java/IdentifierExpression.java
private boolean isStaticContext(int ix) {
      if (idTypes == null || idTypes[ix] == null)
         return false;

      switch (idTypes[ix]) {
         case UnboundMethodName:
         case FieldName:
         case MethodInvocation:
         case RemoteMethodInvocation:
         case GetVariable:
         case IsVariable:
         case SetVariable:
         case GetSetMethodInvocation:
         case GetObjectMethodInvocation:
         case BoundName:
         case EnumName: // Since you don't tag enum methods as static, it should not generate static errors
         case ResolvedObjectName:
            return false;
         case BoundTypeName:
            return true;
      }
      return false;
   }
/** Returns true for class definitions at the specific location */
Returns true for class definitions at the specific location
Returns true for class definitions at the specific location
private boolean isStaticContext(int ix) {
      if (idTypes == null || idTypes[ix] == null)
         return false;
      switch (idTypes[ix]) {
         case UnboundMethodName:
         case FieldName:
         case MethodInvocation:
         case RemoteMethodInvocation:
         case GetVariable:
         case IsVariable:
         case SetVariable:
         case GetSetMethodInvocation:
         case GetObjectMethodInvocation:
         case BoundName:
         case EnumName: 
         case ResolvedObjectName:
            return false;
         case BoundTypeName:
            return true;
      }
      return false;
   }
private boolean isStaticContext ( int ix ) { if ( idTypes == null || idTypes [ ix ] == null ) return false ; switch ( idTypes [ ix ] ) { case UnboundMethodName : case FieldName : case MethodInvocation : case RemoteMethodInvocation : case GetVariable : case IsVariable : case SetVariable : case GetSetMethodInvocation : case GetObjectMethodInvocation : case BoundName : case EnumName : case ResolvedObjectName : return false ; case BoundTypeName : return true ; } return false ; }
Returns true for class definitions at the specific location
Returns true for class definitions at the specific location
// Since you don't tag enum methods as static, it should not generate static errors