Examples of PhpAstLexer


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

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 ClassDeclaration node = (ClassDeclaration) program.statements()
        .get(0);
    final Statement statement = node.getBody().statements().get(index);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.