system/src/sc/lang/java/Statement.java
public ISrcStatement findFromStatement(ISrcStatement st) {
      // If the src statement has a part of our origin statement we are a match.
      if (st.getNodeContainsPart(this.getFromStatement()))
         return this;
      if (fromStatement != null) {
         if (fromStatement == st || ((SemanticNode) fromStatement).sameSrcLocation(st))
            return this;
         // Note we return the first reference even after following the chain - since we want the resulting generated source
         // as mapped to the original source.
         if (fromStatement.findFromStatement(st) != null)
            return this;
      }
      return null;
   }
/**
    * Returns the statement that was generated from the given src statement.  This will end up being the first
    * one we encounter in the search for the src statement in the chain of fromStatements.
    */
Returns the statement that was generated from the given src statement.  This will end up being the first
one we encounter in the search for the src statement in the chain of fromStatements.
Returns the statement that was generated from the given src statement . This will end up being the first one we encounter in the search for the src statement in the chain of fromStatements .
public ISrcStatement findFromStatement(ISrcStatement st) {
      if (st.getNodeContainsPart(this.getFromStatement()))
         return this;
      if (fromStatement != null) {
         if (fromStatement == st || ((SemanticNode) fromStatement).sameSrcLocation(st))
            return this;
         if (fromStatement.findFromStatement(st) != null)
            return this;
      }
      return null;
   }
public ISrcStatement findFromStatement ( ISrcStatement st ) { if ( st . getNodeContainsPart ( this . getFromStatement ( ) ) ) return this ; if ( fromStatement != null ) { if ( fromStatement == st || ( ( SemanticNode ) fromStatement ) . sameSrcLocation ( st ) ) return this ; if ( fromStatement . findFromStatement ( st ) != null ) return this ; } return null ; }
Returns the statement that was generated from the given src statement.
Returns the statement that was generated from the given src statement .
// If the src statement has a part of our origin statement we are a match. // Note we return the first reference even after following the chain - since we want the resulting generated source // as mapped to the original source.