@Immutable public final class ChromeCodingConvention extends CodingConventions.Proxy
CodingConvention.AssertionFunctionLookup, CodingConvention.AssertionFunctionSpec, CodingConvention.Bind, CodingConvention.Cache, CodingConvention.DelegateRelationship, CodingConvention.ObjectLiteralCast, CodingConvention.SubclassRelationship, CodingConvention.SubclassType
nextConvention
Constructor and Description |
---|
ChromeCodingConvention() |
ChromeCodingConvention(CodingConvention wrapped) |
Modifier and Type | Method and Description |
---|---|
void |
applySingletonGetter(NominalTypeBuilder classType,
FunctionType getterType)
In many JS libraries, the function that adds a singleton getter to a class
adds properties to the class.
|
com.google.common.collect.ImmutableCollection<java.lang.String> |
getIndirectlyDeclaredProperties()
Gets a collection of all properties that are defined indirectly on global
objects.
|
java.lang.String |
getSingletonGetterClassName(Node callNode)
Checks if the given method defines a singleton getter, and if it does,
returns the name of the class with the singleton getter.
|
applyDelegateRelationship, applySubclassRelationship, blockRenamingForProperty, checkForCallingConventionDefinitions, defineDelegateProxyPrototypeProperties, describeCachingCall, describeFunctionBind, describeFunctionBind, extractClassNameIfProvide, extractClassNameIfRequire, extractIsModuleFile, getAbstractMethodName, getAssertionFunctions, getClassesDefinedByCall, getDelegateRelationship, getDelegateSuperclassName, getExportPropertyFunction, getExportSymbolFunction, getGlobalObject, getObjectLiteralCast, getPackageName, hasPrivacyConvention, identifyTypeDeclarationCall, isAliasingGlobalThis, isClassFactoryCall, isConstant, isConstantKey, isExported, isExported, isFunctionCallThatAlwaysThrows, isInlinableFunction, isOptionalParameter, isPrivate, isPropertyRenameFunction, isPropertyTestFunction, isPrototypeAlias, isSuperClassReference, isValidEnumKey, isVarArgsParameter
public ChromeCodingConvention()
public ChromeCodingConvention(CodingConvention wrapped)
public java.lang.String getSingletonGetterClassName(Node callNode)
CodingConvention
getSingletonGetterClassName
in interface CodingConvention
getSingletonGetterClassName
in class CodingConventions.Proxy
callNode
- A CALL node.public void applySingletonGetter(NominalTypeBuilder classType, FunctionType getterType)
CodingConvention
applySingletonGetter
in interface CodingConvention
applySingletonGetter
in class CodingConventions.Proxy
public com.google.common.collect.ImmutableCollection<java.lang.String> getIndirectlyDeclaredProperties()
CodingConvention
getIndirectlyDeclaredProperties
in interface CodingConvention
getIndirectlyDeclaredProperties
in class CodingConventions.Proxy
Copyright © 2009-2020 Google. All Rights Reserved.