| Package | Description |
|---|---|
| com.google.javascript.jscomp.newtypes |
| Modifier and Type | Method and Description |
|---|---|
FunctionType |
FunctionTypeBuilder.buildFunction() |
FunctionType |
NominalType.getConstructorFunction() |
FunctionType |
RawNominalType.getConstructorFunction() |
FunctionType |
JSType.getFunType() |
FunctionType |
JSType.getFunTypeIfSingletonObj() |
FunctionType |
FunctionType.instantiateGenerics(Map<String,JSType> typeMap)
Returns a FunctionType with generic type parameters instantiated as
concrete types using typeMap.
|
FunctionType |
FunctionType.instantiateGenericsFromArgumentTypes(JSType recvtype,
List<JSType> argTypes)
Given concrete types for the arguments, unify with the formals to create
a type map, and then instantiate this function as usual, by calling
instantiateGenerics(java.util.Map<java.lang.String, com.google.javascript.jscomp.newtypes.JSType>). |
FunctionType |
FunctionType.instantiateGenericsWithUnknown() |
FunctionType |
DeclaredFunctionType.toFunctionType() |
FunctionType |
FunctionType.transformByApplyProperty()
Returns a FunctionType representing the 'apply' property of this
function.
|
FunctionType |
FunctionType.transformByCallProperty()
Returns a FunctionType representing the 'call' property of this
function (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
JSType |
JSTypes.fromFunctionType(FunctionType fn) |
boolean |
FunctionType.isValidOverride(FunctionType other)
Returns true if this function is a valid override of other.
|
void |
RawNominalType.setCtorFunction(FunctionType ctorFn) |
JSType |
JSType.withFunction(FunctionType ft,
NominalType fnNominal) |
Copyright © 2009-2017 Google. All Rights Reserved.