Skip to main contentModule model
Source - AllocCallExpression
- GLib allocation call: g_new(Type, n), g_renew(Type *, ptr, n), etc.
These take a type as the first argument, not an expression.
- ArrayAnnotation
- Assignment
- BinaryExpression
- BooleanExpression
- BreakStatement
- CallExpression
- CaseLabel
- CastExpression
- CharLiteralExpression
- Comment
- CommentExpression
- CompoundStatement
- ConditionalExpression
- ContinueStatement
- DoWhileStatement
- DocParam
- DocReturns
- EnumInfo
- EnumValue
- EnumValueDef
- EnumValueDoc
- FieldAccessExpression
- FileModel
- Model of a single file (header or C file)
- ForStatement
- FunctionDeclItem
- FunctionDefItem
- FunctionDoc
- GObjectType
- GenericExpression
- Generic/unknown expression that we don’t need to parse in detail
Used for offsetof, compound literals, etc. that don’t affect linting rules
- GotoStatement
- IdentifierExpression
- IfStatement
- Include
- InitializerItem
- InitializerListExpression
- InterfaceImplementation
- LabeledStatement
- NullExpression
- NumberLiteralExpression
- OffsetField
- A
(struct_type, field) pair — used by offsetof() and G_STRUCT_OFFSET. - OffsetOfExpression
- Project
- The complete project model - a map of files to their content
- Property
- PropertyDoc
- PropertyEnumContext
- Resolved context for a property enum: the owning GObjectType, its class_init
function, and the get/set property function names.
- ReturnStatement
- Signal
- Represents a GObject signal registration
- SignalDoc
- SizeofExpression
- SourceLocation
- Source location information for AST nodes
- StringLiteralExpression
- StructField
- A parsed field from a struct body (e.g.
GObject parent → field_type =
“GObject”) - SubscriptExpression
- SwitchCase
- SwitchStatement
- TypeDoc
- TypeInfo
- UnaryExpression
- UpdateExpression
- VariableDecl
- Version
- VirtualFunction
- WhileStatement
- AssignmentOp
- Assignment operators in C
- AutoCleanupMacro
- BasicType
- A C/GLib primitive scalar type.
- BinaryOp
- Binary operators in C
- CommentKind
- CommentPosition
- ConditionalKind
- DeclareKind
- Which G_DECLARE_* variant was used
- DefineKind
- Which G_DEFINE_* (non-boxed, non-pointer, non-extended) variant was used
- DefineValue
- Designator
- EnumValueAnnotation
- Annotations valid on enum/flag values.
- ExportMacro
- Expression
- FieldAccessOp
- Field access operators in C
- ForInit
- The initializer clause of a
for statement. - FunctionAnnotation
- Annotations valid on functions/methods.
- GObjectTypeKind
- GType
- A GLib GType reference — either a macro/define or a
_get_type() call. - ParamAnnotation
- Annotations valid on function parameters.
- ParamFlag
- ParamSpecAssignment
- Information about a param_spec assignment found in a class_init function
- Parameter
- PragmaKind
- PreprocessorDirective
- PropertyAnnotation
- Annotations valid on properties.
- PropertyType
- ReturnAnnotation
- Annotations valid on return values.
- ScopeKind
- SignalAnnotation
- Annotations valid on signals.
- SignalFlag
- SizeofOperand
- Statement
- TopLevelItem
- Represents a top-level item in a C file
- TopLevelItemKind
- Coarse kind of a top-level item, useful for filtering without
pattern-matching.
- TransferKind
- TypeAnnotation
- Annotations valid on type declarations (structs, boxed, fundamental).
- TypeDefItem
- TypedefTarget
- The right-hand side of a typedef declaration.
- UnaryOp
- Unary operators in C
- UpdateOp
- Update operators (increment/decrement)