system/src/sc/lang/java/IfStatement.java
public boolean isIncompleteElse() {
      IParseNode ifPN = getParseNode();
      if (falseStatement == null && trueStatement != null && ifPN != null) {
         IParseNode truePN = trueStatement.getParseNode();
         int trueOffset = (truePN.getStartIndex() - ifPN.getStartIndex()) + truePN.toString().trim().length();
         if (ifPN.indexOf("else", trueOffset) != -1)
            return true;
      }
      return false;
   }
/** Return true for a statement where there's no falseStatement yet but there is an 'else' that was parsed as part of the partial value */
Return true for a statement where there's no falseStatement yet but there is an 'else' that was parsed as part of the partial value
Return true for a statement where there ' s no falseStatement yet but there is an ' else ' that was parsed as part of the partial value
public boolean isIncompleteElse() {
      IParseNode ifPN = getParseNode();
      if (falseStatement == null && trueStatement != null && ifPN != null) {
         IParseNode truePN = trueStatement.getParseNode();
         int trueOffset = (truePN.getStartIndex() - ifPN.getStartIndex()) + truePN.toString().trim().length();
         if (ifPN.indexOf("else", trueOffset) != -1)
            return true;
      }
      return false;
   }
public boolean isIncompleteElse ( ) { IParseNode ifPN = getParseNode ( ) ; if ( falseStatement == null && trueStatement != null && ifPN != null ) { IParseNode truePN = trueStatement . getParseNode ( ) ; int trueOffset = ( truePN . getStartIndex ( ) - ifPN . getStartIndex ( ) ) + truePN . toString ( ) . trim ( ) . length ( ) ; if ( ifPN . indexOf ( "else" , trueOffset ) != - 1 ) return true ; } return false ; }
Return true for a statement where there's no falseStatement yet but there is an 'else' that was parsed as part of the partial value
Return true for a statement where there ' s no falseStatement yet but there is an ' else ' that was parsed as part of the partial value