Codegen home pagelight logodark logo
  • GitHub
  • GitHub
Documentation
API Reference
CLI
Blog
Changelog
API Reference
  • Overview
  • Core
    • Argument
    • Assignment
    • AssignmentStatement
    • Attribute
    • AwaitExpression
    • BinaryExpression
    • BlockStatement
    • Boolean
    • Callable
    • CatchStatement
    • ChainedAttribute
    • Class
    • CodeBlock
    • CodeOwner
    • Codebase
    • Comment
    • CommentGroup
    • ComparisonExpression
    • Decorator
    • Dict
    • Directory
    • Editable
    • Export
    • ExportStatement
    • Exportable
    • Expression
    • ExpressionGroup
    • ExpressionStatement
    • ExternalModule
    • File
    • FlagKwargs
    • ForLoopStatement
    • Function
    • FunctionCall
    • GenericType
    • HasBlock
    • HasName
    • HasValue
    • IfBlockStatement
    • Import
    • ImportStatement
    • ImportType
    • Importable
    • Interface
    • List
    • MessageType
    • MultiExpression
    • MultiLineCollection
    • Name
    • NamedType
    • NoneType
    • Number
    • Pair
    • Parameter
    • ParenthesizedExpression
    • Placeholder
    • PlaceholderType
    • RaiseStatement
    • ReturnStatement
    • SourceFile
    • Span
    • Statement
    • StatementType
    • String
    • StubPlaceholder
    • SubscriptExpression
    • SwitchCase
    • SwitchStatement
    • Symbol
    • SymbolGroup
    • SymbolStatement
    • TernaryExpression
    • TryCatchStatement
    • Tuple
    • TupleType
    • Type
    • TypeAlias
    • TypePlaceholder
    • Typeable
    • UnaryExpression
    • UnionType
    • Unpack
    • Unwrappable
    • Usable
    • Usage
    • UsageKind
    • UsageType
    • Value
    • WhileStatement
    • WithStatement
  • Python
  • Typescript
Core

HasValue

An interface for any node object that has a value.

View Source on Github

​
Attributes

​
value

Expression | None

Gets the value node of the object.

​
Methods

​
set_value

Sets the value of the node’s value Expression.

View Source on Github

Parameters

value
str
required

The new value to set.

Returns

None

Was this page helpful?

HasNameIfBlockStatement
xlinkedin
Powered by Mintlify
On this page
  • Attributes
  • value
  • Methods
  • set_value