File indexing completed on 2025-11-19 09:50:44
0001
0002
0003 #ifndef Py_INTERNAL_AST_STATE_H
0004 #define Py_INTERNAL_AST_STATE_H
0005
0006 #include "pycore_lock.h" // _PyOnceFlag
0007
0008 #ifdef __cplusplus
0009 extern "C" {
0010 #endif
0011
0012 #ifndef Py_BUILD_CORE
0013 # error "this header requires Py_BUILD_CORE define"
0014 #endif
0015
0016 struct ast_state {
0017 _PyOnceFlag once;
0018 int finalized;
0019 PyObject *AST_type;
0020 PyObject *Add_singleton;
0021 PyObject *Add_type;
0022 PyObject *And_singleton;
0023 PyObject *And_type;
0024 PyObject *AnnAssign_type;
0025 PyObject *Assert_type;
0026 PyObject *Assign_type;
0027 PyObject *AsyncFor_type;
0028 PyObject *AsyncFunctionDef_type;
0029 PyObject *AsyncWith_type;
0030 PyObject *Attribute_type;
0031 PyObject *AugAssign_type;
0032 PyObject *Await_type;
0033 PyObject *BinOp_type;
0034 PyObject *BitAnd_singleton;
0035 PyObject *BitAnd_type;
0036 PyObject *BitOr_singleton;
0037 PyObject *BitOr_type;
0038 PyObject *BitXor_singleton;
0039 PyObject *BitXor_type;
0040 PyObject *BoolOp_type;
0041 PyObject *Break_type;
0042 PyObject *Call_type;
0043 PyObject *ClassDef_type;
0044 PyObject *Compare_type;
0045 PyObject *Constant_type;
0046 PyObject *Continue_type;
0047 PyObject *Del_singleton;
0048 PyObject *Del_type;
0049 PyObject *Delete_type;
0050 PyObject *DictComp_type;
0051 PyObject *Dict_type;
0052 PyObject *Div_singleton;
0053 PyObject *Div_type;
0054 PyObject *Eq_singleton;
0055 PyObject *Eq_type;
0056 PyObject *ExceptHandler_type;
0057 PyObject *Expr_type;
0058 PyObject *Expression_type;
0059 PyObject *FloorDiv_singleton;
0060 PyObject *FloorDiv_type;
0061 PyObject *For_type;
0062 PyObject *FormattedValue_type;
0063 PyObject *FunctionDef_type;
0064 PyObject *FunctionType_type;
0065 PyObject *GeneratorExp_type;
0066 PyObject *Global_type;
0067 PyObject *GtE_singleton;
0068 PyObject *GtE_type;
0069 PyObject *Gt_singleton;
0070 PyObject *Gt_type;
0071 PyObject *IfExp_type;
0072 PyObject *If_type;
0073 PyObject *ImportFrom_type;
0074 PyObject *Import_type;
0075 PyObject *In_singleton;
0076 PyObject *In_type;
0077 PyObject *Interactive_type;
0078 PyObject *Invert_singleton;
0079 PyObject *Invert_type;
0080 PyObject *IsNot_singleton;
0081 PyObject *IsNot_type;
0082 PyObject *Is_singleton;
0083 PyObject *Is_type;
0084 PyObject *JoinedStr_type;
0085 PyObject *LShift_singleton;
0086 PyObject *LShift_type;
0087 PyObject *Lambda_type;
0088 PyObject *ListComp_type;
0089 PyObject *List_type;
0090 PyObject *Load_singleton;
0091 PyObject *Load_type;
0092 PyObject *LtE_singleton;
0093 PyObject *LtE_type;
0094 PyObject *Lt_singleton;
0095 PyObject *Lt_type;
0096 PyObject *MatMult_singleton;
0097 PyObject *MatMult_type;
0098 PyObject *MatchAs_type;
0099 PyObject *MatchClass_type;
0100 PyObject *MatchMapping_type;
0101 PyObject *MatchOr_type;
0102 PyObject *MatchSequence_type;
0103 PyObject *MatchSingleton_type;
0104 PyObject *MatchStar_type;
0105 PyObject *MatchValue_type;
0106 PyObject *Match_type;
0107 PyObject *Mod_singleton;
0108 PyObject *Mod_type;
0109 PyObject *Module_type;
0110 PyObject *Mult_singleton;
0111 PyObject *Mult_type;
0112 PyObject *Name_type;
0113 PyObject *NamedExpr_type;
0114 PyObject *Nonlocal_type;
0115 PyObject *NotEq_singleton;
0116 PyObject *NotEq_type;
0117 PyObject *NotIn_singleton;
0118 PyObject *NotIn_type;
0119 PyObject *Not_singleton;
0120 PyObject *Not_type;
0121 PyObject *Or_singleton;
0122 PyObject *Or_type;
0123 PyObject *ParamSpec_type;
0124 PyObject *Pass_type;
0125 PyObject *Pow_singleton;
0126 PyObject *Pow_type;
0127 PyObject *RShift_singleton;
0128 PyObject *RShift_type;
0129 PyObject *Raise_type;
0130 PyObject *Return_type;
0131 PyObject *SetComp_type;
0132 PyObject *Set_type;
0133 PyObject *Slice_type;
0134 PyObject *Starred_type;
0135 PyObject *Store_singleton;
0136 PyObject *Store_type;
0137 PyObject *Sub_singleton;
0138 PyObject *Sub_type;
0139 PyObject *Subscript_type;
0140 PyObject *TryStar_type;
0141 PyObject *Try_type;
0142 PyObject *Tuple_type;
0143 PyObject *TypeAlias_type;
0144 PyObject *TypeIgnore_type;
0145 PyObject *TypeVarTuple_type;
0146 PyObject *TypeVar_type;
0147 PyObject *UAdd_singleton;
0148 PyObject *UAdd_type;
0149 PyObject *USub_singleton;
0150 PyObject *USub_type;
0151 PyObject *UnaryOp_type;
0152 PyObject *While_type;
0153 PyObject *With_type;
0154 PyObject *YieldFrom_type;
0155 PyObject *Yield_type;
0156 PyObject *__dict__;
0157 PyObject *__doc__;
0158 PyObject *__match_args__;
0159 PyObject *__module__;
0160 PyObject *_attributes;
0161 PyObject *_fields;
0162 PyObject *alias_type;
0163 PyObject *annotation;
0164 PyObject *arg;
0165 PyObject *arg_type;
0166 PyObject *args;
0167 PyObject *argtypes;
0168 PyObject *arguments_type;
0169 PyObject *asname;
0170 PyObject *ast;
0171 PyObject *attr;
0172 PyObject *bases;
0173 PyObject *body;
0174 PyObject *boolop_type;
0175 PyObject *bound;
0176 PyObject *cases;
0177 PyObject *cause;
0178 PyObject *cls;
0179 PyObject *cmpop_type;
0180 PyObject *col_offset;
0181 PyObject *comparators;
0182 PyObject *comprehension_type;
0183 PyObject *context_expr;
0184 PyObject *conversion;
0185 PyObject *ctx;
0186 PyObject *decorator_list;
0187 PyObject *default_value;
0188 PyObject *defaults;
0189 PyObject *elt;
0190 PyObject *elts;
0191 PyObject *end_col_offset;
0192 PyObject *end_lineno;
0193 PyObject *exc;
0194 PyObject *excepthandler_type;
0195 PyObject *expr_context_type;
0196 PyObject *expr_type;
0197 PyObject *finalbody;
0198 PyObject *format_spec;
0199 PyObject *func;
0200 PyObject *generators;
0201 PyObject *guard;
0202 PyObject *handlers;
0203 PyObject *id;
0204 PyObject *ifs;
0205 PyObject *is_async;
0206 PyObject *items;
0207 PyObject *iter;
0208 PyObject *key;
0209 PyObject *keys;
0210 PyObject *keyword_type;
0211 PyObject *keywords;
0212 PyObject *kind;
0213 PyObject *kw_defaults;
0214 PyObject *kwarg;
0215 PyObject *kwd_attrs;
0216 PyObject *kwd_patterns;
0217 PyObject *kwonlyargs;
0218 PyObject *left;
0219 PyObject *level;
0220 PyObject *lineno;
0221 PyObject *lower;
0222 PyObject *match_case_type;
0223 PyObject *mod_type;
0224 PyObject *module;
0225 PyObject *msg;
0226 PyObject *name;
0227 PyObject *names;
0228 PyObject *op;
0229 PyObject *operand;
0230 PyObject *operator_type;
0231 PyObject *ops;
0232 PyObject *optional_vars;
0233 PyObject *orelse;
0234 PyObject *pattern;
0235 PyObject *pattern_type;
0236 PyObject *patterns;
0237 PyObject *posonlyargs;
0238 PyObject *rest;
0239 PyObject *returns;
0240 PyObject *right;
0241 PyObject *simple;
0242 PyObject *slice;
0243 PyObject *step;
0244 PyObject *stmt_type;
0245 PyObject *subject;
0246 PyObject *tag;
0247 PyObject *target;
0248 PyObject *targets;
0249 PyObject *test;
0250 PyObject *type;
0251 PyObject *type_comment;
0252 PyObject *type_ignore_type;
0253 PyObject *type_ignores;
0254 PyObject *type_param_type;
0255 PyObject *type_params;
0256 PyObject *unaryop_type;
0257 PyObject *upper;
0258 PyObject *value;
0259 PyObject *values;
0260 PyObject *vararg;
0261 PyObject *withitem_type;
0262 };
0263
0264 #ifdef __cplusplus
0265 }
0266 #endif
0267 #endif
0268