Examples of FunctionDefn


Examples of org.openquark.cal.compiler.SourceModel.FunctionDefn

                    if (element instanceof FunctionDefn) {
                        ////
                        /// Process a function definition
                        //
                       
                        final FunctionDefn function = (FunctionDefn)element;

                        final IdentifierInfo.TopLevel.FunctionOrClassMethod functionIdentifier = new IdentifierInfo.TopLevel.FunctionOrClassMethod(
                            QualifiedName.make(currentModuleName, function.getName()));
                       
                        functionAndClassMethodBindings.put(
                            function.getName(),
                            Binding.Definition.make(functionIdentifier, function, function.getNameSourceRange()));
                       
                        if (function instanceof FunctionDefn.Foreign) {
                            // for a foreign function, we record the foreign descriptor
                            if (shouldRecordScope) {
                                handleForeignFunctionDescriptor(
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.