Package com.strobel.decompiler.languages

Examples of com.strobel.decompiler.languages.Region


        final AstNode child = _lastChild;
        return child != null ? child.getEndLocation() : TextLocation.EMPTY;
    }

    public Region getRegion() {
        return new Region(getStartLocation(), getEndLocation());
    }
View Full Code Here


        final AstNode child = _lastChild;
        return child != null ? child.getEndLocation() : TextLocation.EMPTY;
    }

    public Region getRegion() {
        return new Region(getStartLocation(), getEndLocation());
    }
View Full Code Here

    {
      name = ((Identifier)node).getName();
    }
   
    // get a token for this node's region
    Region region = node.getRegion();
    if( region.getBeginLine() == 0 || region.getEndLine() == 0 )
    {
      // DEBUG
      System.err.println( String.format( "WARNING: %s \"%s\" has invalid region: %s", node.getNodeType(), name, region ) );
      return null;
    }
    Token token = new Token(
      toPos( region.getBeginLine(), region.getBeginColumn() ),
      toPos( region.getEndLine(), region.getEndColumn() ),
      m_source
    );
    if( token.start == 0 )
    {
      // DEBUG
View Full Code Here

TOP

Related Classes of com.strobel.decompiler.languages.Region

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.