Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › zig › Ast › full › VarDecl Public Struct VarDecl Doc Source Public Struct std.zig.Ast.full.VarDecl
pub const VarDecl = struct Fields Structs Functions File zig/Ast.zig: 2450
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474 pub const VarDecl = struct {
visib_token : ?TokenIndex ,
extern_export_token : ?TokenIndex ,
lib_name : ?TokenIndex ,
threadlocal_token : ?TokenIndex ,
comptime_token : ?TokenIndex ,
ast : Components ,
pub const Components = struct {
mut_token : TokenIndex ,
type_node : Node .OptionalIndex ,
align_node : Node .OptionalIndex ,
addrspace_node : Node .OptionalIndex ,
section_node : Node .OptionalIndex ,
init_node : Node .OptionalIndex ,
};
pub fn firstToken (var_decl : VarDecl ) TokenIndex {
return var_decl .visib_token orelse
var_decl .extern_export_token orelse
var_decl .threadlocal_token orelse
var_decl .comptime_token orelse
var_decl .ast .mut_token ;
}
}