Package com.google.javascript.jscomp
Class SymbolTable.Symbol
java.lang.Object
com.google.javascript.rhino.jstype.SimpleSlot
com.google.javascript.jscomp.SymbolTable.Symbol
- All Implemented Interfaces:
StaticSlot<JSType>,Serializable
- Enclosing class:
- SymbolTable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the declaration of this symbol.Gets the JSDoc for this slot.booleanbooleanbooleanWhether this is a variable that's only in JSDoc.booleanWhether this is a variable in a lexical scope.booleanWhether this is a property of another variable.toString()Methods inherited from class com.google.javascript.rhino.jstype.SimpleSlot
getName, getType, isTypeInferred
-
Method Details
-
getDeclaration
Description copied from interface:StaticSlotGets the declaration of this symbol. May not exist.- Specified by:
getDeclarationin interfaceStaticSlot<JSType>- Overrides:
getDeclarationin classSimpleSlot
-
getFunctionType
-
defineReferenceAt
-
inGlobalScope
public boolean inGlobalScope() -
inExterns
public boolean inExterns() -
getDeclarationNode
-
getSourceFileName
-
getPropertyScope
-
getJSDocInfo
Description copied from interface:StaticSlotGets the JSDoc for this slot.- Specified by:
getJSDocInfoin interfaceStaticSlot<JSType>- Overrides:
getJSDocInfoin classSimpleSlot
-
isProperty
public boolean isProperty()Whether this is a property of another variable. -
isLexicalVariable
public boolean isLexicalVariable()Whether this is a variable in a lexical scope. -
isDocOnlyParameter
public boolean isDocOnlyParameter()Whether this is a variable that's only in JSDoc. -
toString
-