public class ChromeCodingConvention extends CodingConventions.Proxy
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 |
applySingletonGetterOld(FunctionType functionType,
FunctionType getterType,
ObjectType objectType)
In many JS libraries, the function that adds a singleton getter to a class
adds properties to the class.
|
Collection<CodingConvention.AssertionFunctionSpec> |
getAssertionFunctions()
Returns the set of AssertionFunction.
|
Collection<String> |
getIndirectlyDeclaredProperties()
Gets a collection of all properties that are defined indirectly on global
objects.
|
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.
|
boolean |
isFunctionCallThatAlwaysThrows(Node n)
Used by CheckMissingReturn.
|
applyDelegateRelationship, applySingletonGetterNew, applySubclassRelationship, blockRenamingForProperty, checkForCallingConventionDefiningCalls, defineDelegateProxyPrototypeProperties, describeCachingCall, describeFunctionBind, describeFunctionBind, extractClassNameIfProvide, extractClassNameIfRequire, extractIsModuleFile, getAbstractMethodName, getClassesDefinedByCall, getDelegateRelationship, getDelegateSuperclassName, getExportPropertyFunction, getExportSymbolFunction, getGlobalObject, getObjectLiteralCast, getPackageName, hasPrivacyConvention, identifyTypeDeclarationCall, isClassFactoryCall, isConstant, isConstantKey, isExported, isExported, isInlinableFunction, isOptionalParameter, isPrivate, isPropertyRenameFunction, isPropertyTestFunction, isPrototypeAlias, isSuperClassReference, isValidEnumKey, isVarArgsParameter
public ChromeCodingConvention()
public ChromeCodingConvention(CodingConvention wrapped)
public String getSingletonGetterClassName(Node callNode)
CodingConvention
getSingletonGetterClassName
in interface CodingConvention
getSingletonGetterClassName
in class CodingConventions.Proxy
callNode
- A CALL node.public void applySingletonGetterOld(FunctionType functionType, FunctionType getterType, ObjectType objectType)
CodingConvention
applySingletonGetterOld
in interface CodingConvention
applySingletonGetterOld
in class CodingConventions.Proxy
public Collection<String> getIndirectlyDeclaredProperties()
CodingConvention
getIndirectlyDeclaredProperties
in interface CodingConvention
getIndirectlyDeclaredProperties
in class CodingConventions.Proxy
public Collection<CodingConvention.AssertionFunctionSpec> getAssertionFunctions()
CodingConvention
getAssertionFunctions
in interface CodingConvention
getAssertionFunctions
in class CodingConventions.Proxy
public boolean isFunctionCallThatAlwaysThrows(Node n)
CodingConvention
isFunctionCallThatAlwaysThrows
in interface CodingConvention
isFunctionCallThatAlwaysThrows
in class CodingConventions.Proxy
Copyright © 2009-2017 Google. All Rights Reserved.