Java Code Examples for com.google.javascript.rhino.jstype.UnionType#getRestrictedUnion()

The following examples show how to use com.google.javascript.rhino.jstype.UnionType#getRestrictedUnion() . 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: SemanticReverseAbstractInterpreter.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  if (target.isUnknownType()) {
    return type;
  }

  FunctionType funcTarget = target.toMaybeFunctionType();
  if (funcTarget.hasInstanceType()) {
    return type.getRestrictedUnion(funcTarget.getInstanceType());
  }

  return null;
}
 
Example 2
Source File: Cardumen_0024_t.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(VOID_TYPE));
}
 
Example 3
Source File: Cardumen_0024_t.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(NULL_TYPE));
}
 
Example 4
Source File: Cardumen_0024_s.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(VOID_TYPE));
}
 
Example 5
Source File: Cardumen_0024_s.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(NULL_TYPE));
}
 
Example 6
Source File: Closure_7_ChainableReverseAbstractInterpreter_t.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(VOID_TYPE));
}
 
Example 7
Source File: Closure_7_ChainableReverseAbstractInterpreter_t.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(NULL_TYPE));
}
 
Example 8
Source File: Closure_7_ChainableReverseAbstractInterpreter_s.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(VOID_TYPE));
}
 
Example 9
Source File: Closure_7_ChainableReverseAbstractInterpreter_s.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(NULL_TYPE));
}
 
Example 10
Source File: Closure_19_ChainableReverseAbstractInterpreter_t.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(VOID_TYPE));
}
 
Example 11
Source File: Closure_19_ChainableReverseAbstractInterpreter_t.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(NULL_TYPE));
}
 
Example 12
Source File: Closure_19_ChainableReverseAbstractInterpreter_s.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(VOID_TYPE));
}
 
Example 13
Source File: Closure_19_ChainableReverseAbstractInterpreter_s.java    From coming with MIT License 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(NULL_TYPE));
}
 
Example 14
Source File: ChainableReverseAbstractInterpreter.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(VOID_TYPE));
}
 
Example 15
Source File: ChainableReverseAbstractInterpreter.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
@Override
public JSType caseUnionType(UnionType type) {
  return type.getRestrictedUnion(getNativeType(NULL_TYPE));
}