Java Code Examples for jdk.nashorn.internal.ir.FunctionNode#getParameters()
The following examples show how to use
jdk.nashorn.internal.ir.FunctionNode#getParameters() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FunctionSignature.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Create a function signature given a function node, using as much * type information for parameters and return types that is available * * @param functionNode the function node */ public FunctionSignature(final FunctionNode functionNode) { this( true, functionNode.needsCallee(), functionNode.getReturnType(), (functionNode.isVarArg() && !functionNode.isProgram()) ? null : functionNode.getParameters()); }
Example 2
Source File: FunctionSignature.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Create a function signature given a function node, using as much * type information for parameters and return types that is available * * @param functionNode the function node */ public FunctionSignature(final FunctionNode functionNode) { this( true, functionNode.needsCallee(), functionNode.getReturnType(), (functionNode.isVarArg() && !functionNode.isProgram()) ? null : functionNode.getParameters()); }
Example 3
Source File: FunctionSignature.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Create a function signature given a function node, using as much * type information for parameters and return types that is available * * @param functionNode the function node */ public FunctionSignature(final FunctionNode functionNode) { this( true, functionNode.needsCallee(), functionNode.getReturnType(), (functionNode.isVarArg() && !functionNode.isProgram()) ? null : functionNode.getParameters()); }
Example 4
Source File: FunctionSignature.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Create a function signature given a function node, using as much * type information for parameters and return types that is available * * @param functionNode the function node */ public FunctionSignature(final FunctionNode functionNode) { this( true, functionNode.needsCallee(), functionNode.getReturnType(), (functionNode.isVarArg() && !functionNode.isProgram()) ? null : functionNode.getParameters()); }
Example 5
Source File: Lower.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public boolean enterFunctionNode(final FunctionNode functionNode) { if (es6) { if (functionNode.getKind() == FunctionNode.Kind.MODULE) { throwNotImplementedYet("es6.module", functionNode); } if (functionNode.getKind() == FunctionNode.Kind.GENERATOR) { throwNotImplementedYet("es6.generator", functionNode); } if (functionNode.usesSuper()) { throwNotImplementedYet("es6.super", functionNode); } final int numParams = functionNode.getNumOfParams(); if (numParams > 0) { final IdentNode lastParam = functionNode.getParameter(numParams - 1); if (lastParam.isRestParameter()) { throwNotImplementedYet("es6.rest.param", lastParam); } } for (final IdentNode param : functionNode.getParameters()) { if (param.isDestructuredParameter()) { throwNotImplementedYet("es6.destructuring", functionNode); } } } return super.enterFunctionNode(functionNode); }
Example 6
Source File: FunctionSignature.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Create a function signature given a function node, using as much * type information for parameters and return types that is available * * @param functionNode the function node */ public FunctionSignature(final FunctionNode functionNode) { this( true, functionNode.needsCallee(), functionNode.getReturnType(), (functionNode.isVarArg() && !functionNode.isProgram()) ? null : functionNode.getParameters()); }
Example 7
Source File: FunctionSignature.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Create a function signature given a function node, using as much * type information for parameters and return types that is available * * @param functionNode the function node */ public FunctionSignature(final FunctionNode functionNode) { this( true, functionNode.needsCallee(), functionNode.getReturnType(), (functionNode.isVarArg() && !functionNode.isProgram()) ? null : functionNode.getParameters()); }
Example 8
Source File: FunctionSignature.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Create a function signature given a function node, using as much * type information for parameters and return types that is available * * @param functionNode the function node */ public FunctionSignature(final FunctionNode functionNode) { this( true, functionNode.needsCallee(), functionNode.getReturnType(), (functionNode.isVarArg() && !functionNode.isProgram()) ? null : functionNode.getParameters()); }
Example 9
Source File: FunctionSignature.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Create a function signature given a function node, using as much * type information for parameters and return types that is available * * @param functionNode the function node */ public FunctionSignature(final FunctionNode functionNode) { this( true, functionNode.needsCallee(), functionNode.getReturnType(), (functionNode.isVarArg() && !functionNode.isProgram()) ? null : functionNode.getParameters()); }
Example 10
Source File: FunctionSignature.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
/** * Create a function signature given a function node, using as much * type information for parameters and return types that is available * * @param functionNode the function node */ public FunctionSignature(final FunctionNode functionNode) { this( true, functionNode.needsCallee(), functionNode.getReturnType(), (functionNode.isVarArg() && !functionNode.isProgram()) ? null : functionNode.getParameters()); }
Example 11
Source File: FunctionSignature.java From nashorn with GNU General Public License v2.0 | 5 votes |
/** * Create a function signature given a function node, using as much * type information for parameters and return types that is available * * @param functionNode the function node */ public FunctionSignature(final FunctionNode functionNode) { this( true, functionNode.needsCallee(), functionNode.getReturnType(), (functionNode.isVarArg() && !functionNode.isProgram()) ? null : functionNode.getParameters()); }