Java Code Examples for jdk.nashorn.internal.ir.Symbol#setSymbolIsScope()
The following examples show how to use
jdk.nashorn.internal.ir.Symbol#setSymbolIsScope() .
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: AssignSymbols.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * If the symbol isn't already a scope symbol, but it needs to be (see {@link #symbolNeedsToBeScope(Symbol)}, it is * promoted to a scope symbol and its block marked as needing a scope. * @param symbol the symbol that might be scoped */ private void maybeForceScope(final Symbol symbol) { if (!symbol.isScope() && symbolNeedsToBeScope(symbol)) { Symbol.setSymbolIsScope(lc, symbol); } }
Example 2
Source File: AssignSymbols.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** * If the symbol isn't already a scope symbol, but it needs to be (see {@link #symbolNeedsToBeScope(Symbol)}, it is * promoted to a scope symbol and its block marked as needing a scope. * @param symbol the symbol that might be scoped */ private void maybeForceScope(final Symbol symbol) { if (!symbol.isScope() && symbolNeedsToBeScope(symbol)) { Symbol.setSymbolIsScope(lc, symbol); } }
Example 3
Source File: AssignSymbols.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** * If the symbol isn't already a scope symbol, but it needs to be (see {@link #symbolNeedsToBeScope(Symbol)}, it is * promoted to a scope symbol and its block marked as needing a scope. * @param symbol the symbol that might be scoped */ private void maybeForceScope(final Symbol symbol) { if (!symbol.isScope() && symbolNeedsToBeScope(symbol)) { Symbol.setSymbolIsScope(lc, symbol); } }
Example 4
Source File: AssignSymbols.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * If the symbol isn't already a scope symbol, but it needs to be (see {@link #symbolNeedsToBeScope(Symbol)}, it is * promoted to a scope symbol and its block marked as needing a scope. * @param symbol the symbol that might be scoped */ private void maybeForceScope(final Symbol symbol) { if (!symbol.isScope() && symbolNeedsToBeScope(symbol)) { Symbol.setSymbolIsScope(lc, symbol); } }
Example 5
Source File: AssignSymbols.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * If the symbol isn't already a scope symbol, but it needs to be (see {@link #symbolNeedsToBeScope(Symbol)}, it is * promoted to a scope symbol and its block marked as needing a scope. * @param symbol the symbol that might be scoped */ private void maybeForceScope(final Symbol symbol) { if (!symbol.isScope() && symbolNeedsToBeScope(symbol)) { Symbol.setSymbolIsScope(lc, symbol); } }
Example 6
Source File: AssignSymbols.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * If the symbol isn't already a scope symbol, but it needs to be (see {@link #symbolNeedsToBeScope(Symbol)}, it is * promoted to a scope symbol and its block marked as needing a scope. * @param symbol the symbol that might be scoped */ private void maybeForceScope(final Symbol symbol) { if (!symbol.isScope() && symbolNeedsToBeScope(symbol)) { Symbol.setSymbolIsScope(lc, symbol); } }
Example 7
Source File: Attr.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * If the symbol isn't already a scope symbol, and it is either not local to the current function, or it is being * referenced from within a with block, we force it to be a scope symbol. * @param symbol the symbol that might be scoped */ private void maybeForceScope(final Symbol symbol) { if (!symbol.isScope() && symbolNeedsToBeScope(symbol)) { Symbol.setSymbolIsScope(lc, symbol); } }
Example 8
Source File: Attr.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * If the symbol isn't already a scope symbol, and it is either not local to the current function, or it is being * referenced from within a with block, we force it to be a scope symbol. * @param symbol the symbol that might be scoped */ private void maybeForceScope(final Symbol symbol) { if (!symbol.isScope() && symbolNeedsToBeScope(symbol)) { Symbol.setSymbolIsScope(lc, symbol); } }
Example 9
Source File: AssignSymbols.java From jdk8u_nashorn with GNU General Public License v2.0 | 4 votes |
/** * If the symbol isn't already a scope symbol, but it needs to be (see {@link #symbolNeedsToBeScope(Symbol)}, it is * promoted to a scope symbol and its block marked as needing a scope. * @param symbol the symbol that might be scoped */ private void maybeForceScope(final Symbol symbol) { if (!symbol.isScope() && symbolNeedsToBeScope(symbol)) { Symbol.setSymbolIsScope(lc, symbol); } }
Example 10
Source File: Attr.java From nashorn with GNU General Public License v2.0 | 4 votes |
/** * If the symbol isn't already a scope symbol, and it is either not local to the current function, or it is being * referenced from within a with block, we force it to be a scope symbol. * @param symbol the symbol that might be scoped */ private void maybeForceScope(final Symbol symbol) { if (!symbol.isScope() && symbolNeedsToBeScope(symbol)) { Symbol.setSymbolIsScope(lc, symbol); } }