Java Code Examples for com.sun.tools.javac.comp.DeferredAttr.AttrMode#SPECULATIVE
The following examples show how to use
com.sun.tools.javac.comp.DeferredAttr.AttrMode#SPECULATIVE .
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: ArgumentAttr.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 6 votes |
@Override final public Type complete(DeferredType dt, ResultInfo resultInfo, DeferredAttrContext deferredAttrContext) { Assert.check(dt == this); if (deferredAttrContext.mode == AttrMode.SPECULATIVE) { Type t = (resultInfo.pt == Type.recoveryType) ? deferredAttr.basicCompleter.complete(dt, resultInfo, deferredAttrContext) : overloadCheck(resultInfo, deferredAttrContext); speculativeTypes.put(resultInfo, t); return t; } else { if (!env.info.isSpeculative) { argumentTypeCache.remove(new UniquePos(dt.tree)); } return deferredAttr.basicCompleter.complete(dt, resultInfo, deferredAttrContext); } }
Example 2
Source File: ArgumentAttr.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override final public Type complete(DeferredType dt, ResultInfo resultInfo, DeferredAttrContext deferredAttrContext) { Assert.check(dt == this); if (deferredAttrContext.mode == AttrMode.SPECULATIVE) { Type t = (resultInfo.pt == Type.recoveryType) ? deferredAttr.basicCompleter.complete(dt, resultInfo, deferredAttrContext) : overloadCheck(resultInfo, deferredAttrContext); speculativeTypes.put(resultInfo, t); return t; } else { if (!env.info.isSpeculative) { argumentTypeCache.remove(new UniquePos(dt.tree)); } return deferredAttr.basicCompleter.complete(dt, resultInfo, deferredAttrContext); } }
Example 3
Source File: Resolve.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
Type checkMethod(Env<AttrContext> env, Type site, Symbol m, ResultInfo resultInfo, List<Type> argtypes, List<Type> typeargtypes, Warner warn) { MethodResolutionContext prevContext = currentResolutionContext; try { currentResolutionContext = new MethodResolutionContext(); currentResolutionContext.attrMode = (resultInfo.pt == Infer.anyPoly) ? AttrMode.SPECULATIVE : DeferredAttr.AttrMode.CHECK; if (env.tree.hasTag(JCTree.Tag.REFERENCE)) { //method/constructor references need special check class //to handle inference variables in 'argtypes' (might happen //during an unsticking round) currentResolutionContext.methodCheck = new MethodReferenceCheck(resultInfo.checkContext.inferenceContext()); } MethodResolutionPhase step = currentResolutionContext.step = env.info.pendingResolutionPhase; return rawInstantiate(env, site, m, resultInfo, argtypes, typeargtypes, step.isBoxingRequired(), step.isVarargsRequired(), warn); } finally { currentResolutionContext = prevContext; } }
Example 4
Source File: Infer.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public ImplicitArgType(Symbol msym, Resolve.MethodResolutionPhase phase) { (rs.deferredAttr).super(AttrMode.SPECULATIVE, msym, phase); }
Example 5
Source File: Infer.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public ImplicitArgType(Symbol msym, Resolve.MethodResolutionPhase phase) { (rs.deferredAttr).super(AttrMode.SPECULATIVE, msym, phase); }
Example 6
Source File: Infer.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public ImplicitArgType(Symbol msym, Resolve.MethodResolutionPhase phase) { (rs.deferredAttr).super(AttrMode.SPECULATIVE, msym, phase); }
Example 7
Source File: Infer.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
public ImplicitArgType(Symbol msym, Resolve.MethodResolutionPhase phase) { (rs.deferredAttr).super(AttrMode.SPECULATIVE, msym, phase); }
Example 8
Source File: Infer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public ImplicitArgType(Symbol msym, Resolve.MethodResolutionPhase phase) { (rs.deferredAttr).super(AttrMode.SPECULATIVE, msym, phase); }
Example 9
Source File: Infer.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public ImplicitArgType(Symbol msym, Resolve.MethodResolutionPhase phase) { (rs.deferredAttr).super(AttrMode.SPECULATIVE, msym, phase); }
Example 10
Source File: Infer.java From hottub with GNU General Public License v2.0 | 4 votes |
public ImplicitArgType(Symbol msym, Resolve.MethodResolutionPhase phase) { (rs.deferredAttr).super(AttrMode.SPECULATIVE, msym, phase); }
Example 11
Source File: Infer.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public ImplicitArgType(Symbol msym, Resolve.MethodResolutionPhase phase) { rs.deferredAttr.super(AttrMode.SPECULATIVE, msym, phase); }
Example 12
Source File: Infer.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public ImplicitArgType(Symbol msym, Resolve.MethodResolutionPhase phase) { rs.deferredAttr.super(AttrMode.SPECULATIVE, msym, phase); }