Package | Description |
---|---|
com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
Modifier and Type | Method and Description |
---|---|
FunctionBuilder |
FunctionBuilder.copyFromOtherFunction(FunctionType otherType)
Copies all the information from another function type.
|
FunctionBuilder |
FunctionBuilder.setIsConstructor(boolean isConstructor)
Set whether this is a constructor.
|
FunctionBuilder |
FunctionBuilder.withInferredReturnType(JSType returnType)
Sets an inferred return type.
|
FunctionBuilder |
FunctionBuilder.withName(String name)
Set the name of the function type.
|
FunctionBuilder |
FunctionBuilder.withParamsNode(Node parametersNode)
Set the parameters of the function type with a specially-formatted node.
|
FunctionBuilder |
FunctionBuilder.withReturnType(JSType returnType)
Set the return type.
|
FunctionBuilder |
FunctionBuilder.withReturnType(JSType returnType,
boolean inferred)
Set the return type and whether it's inferred.
|
FunctionBuilder |
FunctionBuilder.withSourceNode(Node sourceNode)
Set the source node of the function type.
|
FunctionBuilder |
FunctionBuilder.withTemplateKeys(com.google.common.collect.ImmutableList<TemplateType> templateKeys)
Set the template name.
|
FunctionBuilder |
FunctionBuilder.withTypeOfThis(JSType typeOfThis)
Set the "this" type.
|
Copyright © 2009–2023 Google. All rights reserved.