Package org.openquark.cal.compiler.SourceModel

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

Related Classes of org.openquark.cal.compiler.SourceModel.FunctionDefn

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.