Package org.eclipse.php.internal.core.ast.scanner.php5

Examples of org.eclipse.php.internal.core.ast.scanner.php5.PhpAstLexer


    final Reader reader = new StringReader(programStr);
    Program program = ASTParser.newParser(reader, PHPVersion.PHP5,
        ProjectOptions.useShortTags((IProject) null)).createAST(
        new NullProgressMonitor());

    program.initCommentMapper(document, new PhpAstLexer(reader));

    final Statement node = program.statements().get(0);
    final int extendedLength = program.getExtendedLength(node);

    assert extendedLength > node.getLength();
View Full Code Here


    final Reader reader = new StringReader(programStr);
    Program program = ASTParser.newParser(reader, PHPVersion.PHP5,
        ProjectOptions.useShortTags((IProject) null)).createAST(
        new NullProgressMonitor());

    program.initCommentMapper(document, new PhpAstLexer(reader));

    final ClassDeclaration node = (ClassDeclaration) program.statements()
        .get(0);
    final Statement statement = node.getBody().statements().get(index);
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.ast.scanner.php5.PhpAstLexer

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.