Core
HasValue
Getting Started
Guides
Graph Visualization
- Getting Started
- Graphs
- Trees
- Plotly
GraphSitter Reference
- Codebase
- Examples
- Core
- Argument
- Assignment
- AssignmentStatement
- Attribute
- AwaitExpression
- BinaryExpression
- BlockStatement
- Boolean
- Callable
- CatchStatement
- ChainedAttribute
- Class
- CodeBlock
- Codebase
- Comment
- CommentGroup
- ComparisonExpression
- Decorator
- Dict
- Editable
- Export
- ExportStatement
- Exportable
- Expression
- ExpressionGroup
- ExpressionStatement
- ExternalModule
- File
- ForLoopStatement
- Function
- FunctionCall
- GenericType
- GraphSitterBase
- HasBlock
- HasName
- HasValue
- IfBlockStatement
- Import
- ImportStatement
- Importable
- List
- MultiExpression
- MultiLineCollection
- Name
- NamedType
- NoneType
- Number
- Parameter
- ParenthesizedExpression
- Placeholder
- PlaceholderType
- RaiseStatement
- ReturnStatement
- SourceFile
- Statement
- StatementType
- String
- StubPlaceholder
- SwitchCase
- SwitchStatement
- Symbol
- SymbolGroup
- SymbolStatement
- SymbolUsage
- SymbolUsageType
- TryCatchStatement
- Tuple
- Type
- TypePlaceholder
- Typeable
- UnaryExpression
- UnionType
- Unpack
- Usage
- UsageType
- Value
- WhileStatement
- WithStatement
- Python
- Typescript
Core
HasValue
An interface for any node object that has a value
Properties
value
The value of the object
def value(self) -> Expression | None:
...
Methods
set_value
Sets the value of the object
def set_value(self, value: str) -> None:
...
Was this page helpful?
On this page