Package com.dubture.twig.core.parser.ast.node

Examples of com.dubture.twig.core.parser.ast.node.Variable


                @Override
                public boolean visit(BlockStatement block) throws Exception
                {
                    if (TwigCoreConstants.START_BLOCK.equals(block.getName().getValue())) {

                        Variable name = block.getBlockName();

                        if (name == null) {
                            return false;
                        }

                        List<?> statements = block.getChilds();

                        MethodInfo info = new MethodInfo();
                        info.nameSourceStart = name.sourceStart();
                        info.nameSourceEnd = name.sourceEnd() - 1;
                        info.declarationStart = block.sourceStart();

                        info.name = name.getValue();
                        fRequestor.enterMethod(info);

                        if (statements.size() > 1) {
                            fRequestor.exitMethod(block.sourceEnd());
                        }
View Full Code Here


           
            if (parent != null) {
                for (BlockStatement block : parent.getBlocks()) {
                    BlockName name = block.getName();
                    if (name != null && "block".equals(name.getValue())) {
                        Variable child = (Variable) block.getFirstChild();
                        String value = child.getValue();
                       
                        if (CodeAssistUtils.startsWithIgnoreCase(value, prefix)) {
                            FakeField field = new FakeField((ModelElement) context.getSourceModule(), value, 0);
                            reporter.reportField(field, "", range, false);
                        }
View Full Code Here

              Statement RESULT = null;
    int varleft = ((java_cup.runtime.Symbol)CUP$TwigAstParser$stack.elementAt(CUP$TwigAstParser$top-0)).left;
    int varright = ((java_cup.runtime.Symbol)CUP$TwigAstParser$stack.elementAt(CUP$TwigAstParser$top-0)).right;
    String var = (String)((java_cup.runtime.Symbol) CUP$TwigAstParser$stack.elementAt(CUP$TwigAstParser$top-0)).value;
    
                  RESULT = new Variable(varleft, varright, var);
             
              CUP$TwigAstParser$result = new java_cup.runtime.Symbol(8/*statement*/, ((java_cup.runtime.Symbol)CUP$TwigAstParser$stack.elementAt(CUP$TwigAstParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$TwigAstParser$stack.elementAt(CUP$TwigAstParser$top-0)).right, RESULT);
            }
          return CUP$TwigAstParser$result;

View Full Code Here

TOP

Related Classes of com.dubture.twig.core.parser.ast.node.Variable

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.