Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.newtypes | |
com.google.javascript.rhino |
The core AST from Rhino.
|
com.google.javascript.rhino.testing |
Modifier and Type | Method and Description |
---|---|
static Node.TypeDeclarationNode |
JsdocToEs6TypedConverter.TypeDeclarationsIRFactory.convert(JSTypeExpression typeExpr) |
Modifier and Type | Method and Description |
---|---|
JSTypeExpression |
EnumType.getTypeExpr() |
JSTypeExpression |
Typedef.getTypeExpr() |
JSTypeExpression |
EnumType.getTypeExprForErrorReporting() |
JSTypeExpression |
Typedef.getTypeExprForErrorReporting() |
Modifier and Type | Method and Description |
---|---|
static Typedef |
Typedef.make(JSTypeExpression typeExpr) |
static EnumType |
EnumType.make(String name,
JSTypeExpression typeExpr,
Collection<String> props) |
Modifier and Type | Method and Description |
---|---|
JSTypeExpression |
JSTypeExpression.clone() |
JSTypeExpression |
JSDocInfo.getBaseType()
Gets the base type specified by the
@extends annotation. |
JSTypeExpression |
JSDocInfo.getEnumParameterType()
Gets the enum parameter type specified by the
@enum annotation. |
JSTypeExpression |
JSDocInfo.getParameterType(String parameter)
Gets the type of a given named parameter.
|
JSTypeExpression |
JSDocInfo.getReturnType()
Gets the return type specified by the
@return annotation. |
JSTypeExpression |
JSDocInfo.getThisType()
Gets the type specified by the
@this annotation. |
JSTypeExpression |
JSDocInfo.getType()
Gets the type specified by the
@type annotation. |
JSTypeExpression |
JSDocInfo.getTypedefType()
Gets the typedef type specified by the
@type annotation. |
static JSTypeExpression |
JSTypeExpression.makeOptionalArg(JSTypeExpression expr)
Make the given type expression into an optional type expression,
if possible.
|
Modifier and Type | Method and Description |
---|---|
List<JSTypeExpression> |
JSDocInfo.getExtendedInterfaces()
Returns the interfaces extended by an interface
|
List<JSTypeExpression> |
JSDocInfo.getImplementedInterfaces()
Returns the types specified by the
@implements annotation. |
List<JSTypeExpression> |
JSDocInfo.getThrownTypes()
Returns the list of thrown types.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JSDocInfoBuilder.changeBaseType(JSTypeExpression jsType)
Changes a base type, even if one has already been set on currentInfo.
|
String |
JSDocInfo.getThrowsDescriptionForType(JSTypeExpression type)
Get the message for a given thrown type.
|
static JSTypeExpression |
JSTypeExpression.makeOptionalArg(JSTypeExpression expr)
Make the given type expression into an optional type expression,
if possible.
|
boolean |
JSDocInfoBuilder.recordBaseType(JSTypeExpression jsType)
Records a base type.
|
boolean |
JSDocInfoBuilder.recordDefineType(JSTypeExpression type)
Records the type of a define.
|
boolean |
JSDocInfoBuilder.recordEnumParameterType(JSTypeExpression type)
Records a parameter type to an enum.
|
boolean |
JSDocInfoBuilder.recordExtendedInterface(JSTypeExpression interfaceType)
Records an extended interface type.
|
boolean |
JSDocInfoBuilder.recordImplementedInterface(JSTypeExpression interfaceName)
Records an implemented interface.
|
boolean |
JSDocInfoBuilder.recordParameter(String parameterName,
JSTypeExpression type)
Records a typed parameter.
|
boolean |
JSDocInfoBuilder.recordReturnType(JSTypeExpression jsType)
Records a return type.
|
boolean |
JSDocInfoBuilder.recordThisType(JSTypeExpression type)
Records a type for
@this annotation. |
boolean |
JSDocInfoBuilder.recordThrowDescription(JSTypeExpression type,
String description)
Records a throw type's description.
|
boolean |
JSDocInfoBuilder.recordThrowType(JSTypeExpression type)
Records a thrown type.
|
boolean |
JSDocInfoBuilder.recordType(JSTypeExpression type)
Records a type.
|
boolean |
JSDocInfoBuilder.recordTypedef(JSTypeExpression type)
Records that the
JSDocInfo being built should be populated
with a typedef 'd type. |
Modifier and Type | Method and Description |
---|---|
protected void |
BaseJSTypeTestCase.assertTypeEquals(JSType expected,
JSTypeExpression actual)
Asserts that a a type expression resolves to the correct
JSType . |
protected JSType |
BaseJSTypeTestCase.resolve(JSTypeExpression n,
String... warnings)
Resolves a type expression, expecting the given warnings.
|
Copyright © 2009–2023 Google. All rights reserved.