Package org.openquark.cal.compiler.SourceModel.TypeClassDefn

Examples of org.openquark.cal.compiler.SourceModel.TypeClassDefn.ClassMethodDefn


           
            stack.pop();
           
            final int nClassMethodDefns = defn.getNClassMethodDefns();
            for (int i = 0; i < nClassMethodDefns; i++) {
                ClassMethodDefn method = defn.getNthClassMethodDefn(i);
                method.accept(this, options);
            }

            root.addChild(SourceTextNode.makeSemicolon());
            stack.pop();
View Full Code Here


                else if (tlse instanceof SourceModel.TypeClassDefn){
                    SourceModel.TypeClassDefn at = (SourceModel.TypeClassDefn) tlse;
                    // This is a hacky way of finding out where the cursor is until the source model is richer.
                    final int nClassMethods = at.getNClassMethodDefns();
                    for(int j = 0; j < nClassMethods; ++j){
                        ClassMethodDefn classMethod = at.getNthClassMethodDefn(j);
                        if (SourcePosition.compareByPosition.compare(classMethod.getSourceRangeOfName().getStartSourcePosition(), pos) <= 0){
                            if (classMethod.getSourceRangeOfClassDefn().containsPosition(pos)){
                                return new SourceElement[] {tlse, classMethod};
                            }
                        }
                    }
                }
View Full Code Here

TOP

Related Classes of org.openquark.cal.compiler.SourceModel.TypeClassDefn.ClassMethodDefn

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.