@@ -1523,132 +1523,132 @@ const FIELD_TYPES: &[(&str, &[(&str, FieldType)])] = &[
15231523
15241524pub fn extend_module_nodes ( vm : & VirtualMachine , module : & Py < PyModule > ) {
15251525 extend_module ! ( vm, module, {
1526- "AST" => NodeAst :: make_class ( & vm . ctx ) ,
1527- "mod" => NodeMod :: make_class ( & vm . ctx ) ,
1528- "Module" => NodeModModule :: make_class ( & vm . ctx ) ,
1529- "Interactive" => NodeModInteractive :: make_class ( & vm . ctx ) ,
1530- "Expression" => NodeModExpression :: make_class ( & vm . ctx ) ,
1531- "FunctionType" => NodeModFunctionType :: make_class ( & vm . ctx ) ,
1532- "stmt" => NodeStmt :: make_class ( & vm . ctx ) ,
1533- "FunctionDef" => NodeStmtFunctionDef :: make_class ( & vm . ctx ) ,
1534- "AsyncFunctionDef" => NodeStmtAsyncFunctionDef :: make_class ( & vm . ctx ) ,
1535- "ClassDef" => NodeStmtClassDef :: make_class ( & vm . ctx ) ,
1536- "Return" => NodeStmtReturn :: make_class ( & vm . ctx ) ,
1537- "Delete" => NodeStmtDelete :: make_class ( & vm . ctx ) ,
1538- "Assign" => NodeStmtAssign :: make_class ( & vm . ctx ) ,
1539- "TypeAlias" => NodeStmtTypeAlias :: make_class ( & vm . ctx ) ,
1540- "AugAssign" => NodeStmtAugAssign :: make_class ( & vm . ctx ) ,
1541- "AnnAssign" => NodeStmtAnnAssign :: make_class ( & vm . ctx ) ,
1542- "For" => NodeStmtFor :: make_class ( & vm . ctx ) ,
1543- "AsyncFor" => NodeStmtAsyncFor :: make_class ( & vm . ctx ) ,
1544- "While" => NodeStmtWhile :: make_class ( & vm . ctx ) ,
1545- "If" => NodeStmtIf :: make_class ( & vm . ctx ) ,
1546- "With" => NodeStmtWith :: make_class ( & vm . ctx ) ,
1547- "AsyncWith" => NodeStmtAsyncWith :: make_class ( & vm . ctx ) ,
1548- "Match" => NodeStmtMatch :: make_class ( & vm . ctx ) ,
1549- "Raise" => NodeStmtRaise :: make_class ( & vm . ctx ) ,
1550- "Try" => NodeStmtTry :: make_class ( & vm . ctx ) ,
1551- "TryStar" => NodeStmtTryStar :: make_class ( & vm . ctx ) ,
1552- "Assert" => NodeStmtAssert :: make_class ( & vm . ctx ) ,
1553- "Import" => NodeStmtImport :: make_class ( & vm . ctx ) ,
1554- "ImportFrom" => NodeStmtImportFrom :: make_class ( & vm . ctx ) ,
1555- "Global" => NodeStmtGlobal :: make_class ( & vm . ctx ) ,
1556- "Nonlocal" => NodeStmtNonlocal :: make_class ( & vm . ctx ) ,
1557- "Expr" => NodeStmtExpr :: make_class ( & vm . ctx ) ,
1558- "Pass" => NodeStmtPass :: make_class ( & vm . ctx ) ,
1559- "Break" => NodeStmtBreak :: make_class ( & vm . ctx ) ,
1560- "Continue" => NodeStmtContinue :: make_class ( & vm . ctx ) ,
1561- "expr" => NodeExpr :: make_class ( & vm . ctx ) ,
1562- "BoolOp" => NodeExprBoolOp :: make_class ( & vm . ctx ) ,
1563- "NamedExpr" => NodeExprNamedExpr :: make_class ( & vm . ctx ) ,
1564- "BinOp" => NodeExprBinOp :: make_class ( & vm . ctx ) ,
1565- "UnaryOp" => NodeExprUnaryOp :: make_class ( & vm . ctx ) ,
1566- "Lambda" => NodeExprLambda :: make_class ( & vm . ctx ) ,
1567- "IfExp" => NodeExprIfExp :: make_class ( & vm . ctx ) ,
1568- "Dict" => NodeExprDict :: make_class ( & vm . ctx ) ,
1569- "Set" => NodeExprSet :: make_class ( & vm . ctx ) ,
1570- "ListComp" => NodeExprListComp :: make_class ( & vm . ctx ) ,
1571- "SetComp" => NodeExprSetComp :: make_class ( & vm . ctx ) ,
1572- "DictComp" => NodeExprDictComp :: make_class ( & vm . ctx ) ,
1573- "GeneratorExp" => NodeExprGeneratorExp :: make_class ( & vm . ctx ) ,
1574- "Await" => NodeExprAwait :: make_class ( & vm . ctx ) ,
1575- "Yield" => NodeExprYield :: make_class ( & vm . ctx ) ,
1576- "YieldFrom" => NodeExprYieldFrom :: make_class ( & vm . ctx ) ,
1577- "Compare" => NodeExprCompare :: make_class ( & vm . ctx ) ,
1578- "Call" => NodeExprCall :: make_class ( & vm . ctx ) ,
1579- "FormattedValue" => NodeExprFormattedValue :: make_class ( & vm . ctx ) ,
1580- "JoinedStr" => NodeExprJoinedStr :: make_class ( & vm . ctx ) ,
1581- "TemplateStr" => NodeExprTemplateStr :: make_class ( & vm . ctx ) ,
1582- "Interpolation" => NodeExprInterpolation :: make_class ( & vm . ctx ) ,
1583- "Constant" => NodeExprConstant :: make_class ( & vm . ctx ) ,
1584- "Attribute" => NodeExprAttribute :: make_class ( & vm . ctx ) ,
1585- "Subscript" => NodeExprSubscript :: make_class ( & vm . ctx ) ,
1586- "Starred" => NodeExprStarred :: make_class ( & vm . ctx ) ,
1587- "Name" => NodeExprName :: make_class ( & vm . ctx ) ,
1588- "List" => NodeExprList :: make_class ( & vm . ctx ) ,
1589- "Tuple" => NodeExprTuple :: make_class ( & vm . ctx ) ,
1590- "Slice" => NodeExprSlice :: make_class ( & vm . ctx ) ,
1591- "expr_context" => NodeExprContext :: make_class ( & vm . ctx ) ,
1592- "Load" => NodeExprContextLoad :: make_class ( & vm . ctx ) ,
1593- "Store" => NodeExprContextStore :: make_class ( & vm . ctx ) ,
1594- "Del" => NodeExprContextDel :: make_class ( & vm . ctx ) ,
1595- "boolop" => NodeBoolOp :: make_class ( & vm . ctx ) ,
1596- "And" => NodeBoolOpAnd :: make_class ( & vm . ctx ) ,
1597- "Or" => NodeBoolOpOr :: make_class ( & vm . ctx ) ,
1598- "operator" => NodeOperator :: make_class ( & vm . ctx ) ,
1599- "Add" => NodeOperatorAdd :: make_class ( & vm . ctx ) ,
1600- "Sub" => NodeOperatorSub :: make_class ( & vm . ctx ) ,
1601- "Mult" => NodeOperatorMult :: make_class ( & vm . ctx ) ,
1602- "MatMult" => NodeOperatorMatMult :: make_class ( & vm . ctx ) ,
1603- "Div" => NodeOperatorDiv :: make_class ( & vm . ctx ) ,
1604- "Mod" => NodeOperatorMod :: make_class ( & vm . ctx ) ,
1605- "Pow" => NodeOperatorPow :: make_class ( & vm . ctx ) ,
1606- "LShift" => NodeOperatorLShift :: make_class ( & vm . ctx ) ,
1607- "RShift" => NodeOperatorRShift :: make_class ( & vm . ctx ) ,
1608- "BitOr" => NodeOperatorBitOr :: make_class ( & vm . ctx ) ,
1609- "BitXor" => NodeOperatorBitXor :: make_class ( & vm . ctx ) ,
1610- "BitAnd" => NodeOperatorBitAnd :: make_class ( & vm . ctx ) ,
1611- "FloorDiv" => NodeOperatorFloorDiv :: make_class ( & vm . ctx ) ,
1612- "unaryop" => NodeUnaryOp :: make_class ( & vm . ctx ) ,
1613- "Invert" => NodeUnaryOpInvert :: make_class ( & vm . ctx ) ,
1614- "Not" => NodeUnaryOpNot :: make_class ( & vm . ctx ) ,
1615- "UAdd" => NodeUnaryOpUAdd :: make_class ( & vm . ctx ) ,
1616- "USub" => NodeUnaryOpUSub :: make_class ( & vm . ctx ) ,
1617- "cmpop" => NodeCmpOp :: make_class ( & vm . ctx ) ,
1618- "Eq" => NodeCmpOpEq :: make_class ( & vm . ctx ) ,
1619- "NotEq" => NodeCmpOpNotEq :: make_class ( & vm . ctx ) ,
1620- "Lt" => NodeCmpOpLt :: make_class ( & vm . ctx ) ,
1621- "LtE" => NodeCmpOpLtE :: make_class ( & vm . ctx ) ,
1622- "Gt" => NodeCmpOpGt :: make_class ( & vm . ctx ) ,
1623- "GtE" => NodeCmpOpGtE :: make_class ( & vm . ctx ) ,
1624- "Is" => NodeCmpOpIs :: make_class ( & vm . ctx ) ,
1625- "IsNot" => NodeCmpOpIsNot :: make_class ( & vm . ctx ) ,
1626- "In" => NodeCmpOpIn :: make_class ( & vm . ctx ) ,
1627- "NotIn" => NodeCmpOpNotIn :: make_class ( & vm . ctx ) ,
1628- "comprehension" => NodeComprehension :: make_class ( & vm . ctx ) ,
1629- "excepthandler" => NodeExceptHandler :: make_class ( & vm . ctx ) ,
1630- "ExceptHandler" => NodeExceptHandlerExceptHandler :: make_class ( & vm . ctx ) ,
1631- "arguments" => NodeArguments :: make_class ( & vm . ctx ) ,
1632- "arg" => NodeArg :: make_class ( & vm . ctx ) ,
1633- "keyword" => NodeKeyword :: make_class ( & vm . ctx ) ,
1634- "alias" => NodeAlias :: make_class ( & vm . ctx ) ,
1635- "withitem" => NodeWithItem :: make_class ( & vm . ctx ) ,
1636- "match_case" => NodeMatchCase :: make_class ( & vm . ctx ) ,
1637- "pattern" => NodePattern :: make_class ( & vm . ctx ) ,
1638- "MatchValue" => NodePatternMatchValue :: make_class ( & vm . ctx ) ,
1639- "MatchSingleton" => NodePatternMatchSingleton :: make_class ( & vm . ctx ) ,
1640- "MatchSequence" => NodePatternMatchSequence :: make_class ( & vm . ctx ) ,
1641- "MatchMapping" => NodePatternMatchMapping :: make_class ( & vm . ctx ) ,
1642- "MatchClass" => NodePatternMatchClass :: make_class ( & vm . ctx ) ,
1643- "MatchStar" => NodePatternMatchStar :: make_class ( & vm . ctx ) ,
1644- "MatchAs" => NodePatternMatchAs :: make_class ( & vm . ctx ) ,
1645- "MatchOr" => NodePatternMatchOr :: make_class ( & vm . ctx ) ,
1646- "type_ignore" => NodeTypeIgnore :: make_class ( & vm . ctx ) ,
1647- "TypeIgnore" => NodeTypeIgnoreTypeIgnore :: make_class ( & vm . ctx ) ,
1648- "type_param" => NodeTypeParam :: make_class ( & vm . ctx ) ,
1649- "TypeVar" => NodeTypeParamTypeVar :: make_class ( & vm . ctx ) ,
1650- "ParamSpec" => NodeTypeParamParamSpec :: make_class ( & vm . ctx ) ,
1651- "TypeVarTuple" => NodeTypeParamTypeVarTuple :: make_class ( & vm . ctx ) ,
1526+ "AST" => NodeAst :: make_static_type ( ) ,
1527+ "mod" => NodeMod :: make_static_type ( ) ,
1528+ "Module" => NodeModModule :: make_static_type ( ) ,
1529+ "Interactive" => NodeModInteractive :: make_static_type ( ) ,
1530+ "Expression" => NodeModExpression :: make_static_type ( ) ,
1531+ "FunctionType" => NodeModFunctionType :: make_static_type ( ) ,
1532+ "stmt" => NodeStmt :: make_static_type ( ) ,
1533+ "FunctionDef" => NodeStmtFunctionDef :: make_static_type ( ) ,
1534+ "AsyncFunctionDef" => NodeStmtAsyncFunctionDef :: make_static_type ( ) ,
1535+ "ClassDef" => NodeStmtClassDef :: make_static_type ( ) ,
1536+ "Return" => NodeStmtReturn :: make_static_type ( ) ,
1537+ "Delete" => NodeStmtDelete :: make_static_type ( ) ,
1538+ "Assign" => NodeStmtAssign :: make_static_type ( ) ,
1539+ "TypeAlias" => NodeStmtTypeAlias :: make_static_type ( ) ,
1540+ "AugAssign" => NodeStmtAugAssign :: make_static_type ( ) ,
1541+ "AnnAssign" => NodeStmtAnnAssign :: make_static_type ( ) ,
1542+ "For" => NodeStmtFor :: make_static_type ( ) ,
1543+ "AsyncFor" => NodeStmtAsyncFor :: make_static_type ( ) ,
1544+ "While" => NodeStmtWhile :: make_static_type ( ) ,
1545+ "If" => NodeStmtIf :: make_static_type ( ) ,
1546+ "With" => NodeStmtWith :: make_static_type ( ) ,
1547+ "AsyncWith" => NodeStmtAsyncWith :: make_static_type ( ) ,
1548+ "Match" => NodeStmtMatch :: make_static_type ( ) ,
1549+ "Raise" => NodeStmtRaise :: make_static_type ( ) ,
1550+ "Try" => NodeStmtTry :: make_static_type ( ) ,
1551+ "TryStar" => NodeStmtTryStar :: make_static_type ( ) ,
1552+ "Assert" => NodeStmtAssert :: make_static_type ( ) ,
1553+ "Import" => NodeStmtImport :: make_static_type ( ) ,
1554+ "ImportFrom" => NodeStmtImportFrom :: make_static_type ( ) ,
1555+ "Global" => NodeStmtGlobal :: make_static_type ( ) ,
1556+ "Nonlocal" => NodeStmtNonlocal :: make_static_type ( ) ,
1557+ "Expr" => NodeStmtExpr :: make_static_type ( ) ,
1558+ "Pass" => NodeStmtPass :: make_static_type ( ) ,
1559+ "Break" => NodeStmtBreak :: make_static_type ( ) ,
1560+ "Continue" => NodeStmtContinue :: make_static_type ( ) ,
1561+ "expr" => NodeExpr :: make_static_type ( ) ,
1562+ "BoolOp" => NodeExprBoolOp :: make_static_type ( ) ,
1563+ "NamedExpr" => NodeExprNamedExpr :: make_static_type ( ) ,
1564+ "BinOp" => NodeExprBinOp :: make_static_type ( ) ,
1565+ "UnaryOp" => NodeExprUnaryOp :: make_static_type ( ) ,
1566+ "Lambda" => NodeExprLambda :: make_static_type ( ) ,
1567+ "IfExp" => NodeExprIfExp :: make_static_type ( ) ,
1568+ "Dict" => NodeExprDict :: make_static_type ( ) ,
1569+ "Set" => NodeExprSet :: make_static_type ( ) ,
1570+ "ListComp" => NodeExprListComp :: make_static_type ( ) ,
1571+ "SetComp" => NodeExprSetComp :: make_static_type ( ) ,
1572+ "DictComp" => NodeExprDictComp :: make_static_type ( ) ,
1573+ "GeneratorExp" => NodeExprGeneratorExp :: make_static_type ( ) ,
1574+ "Await" => NodeExprAwait :: make_static_type ( ) ,
1575+ "Yield" => NodeExprYield :: make_static_type ( ) ,
1576+ "YieldFrom" => NodeExprYieldFrom :: make_static_type ( ) ,
1577+ "Compare" => NodeExprCompare :: make_static_type ( ) ,
1578+ "Call" => NodeExprCall :: make_static_type ( ) ,
1579+ "FormattedValue" => NodeExprFormattedValue :: make_static_type ( ) ,
1580+ "JoinedStr" => NodeExprJoinedStr :: make_static_type ( ) ,
1581+ "TemplateStr" => NodeExprTemplateStr :: make_static_type ( ) ,
1582+ "Interpolation" => NodeExprInterpolation :: make_static_type ( ) ,
1583+ "Constant" => NodeExprConstant :: make_static_type ( ) ,
1584+ "Attribute" => NodeExprAttribute :: make_static_type ( ) ,
1585+ "Subscript" => NodeExprSubscript :: make_static_type ( ) ,
1586+ "Starred" => NodeExprStarred :: make_static_type ( ) ,
1587+ "Name" => NodeExprName :: make_static_type ( ) ,
1588+ "List" => NodeExprList :: make_static_type ( ) ,
1589+ "Tuple" => NodeExprTuple :: make_static_type ( ) ,
1590+ "Slice" => NodeExprSlice :: make_static_type ( ) ,
1591+ "expr_context" => NodeExprContext :: make_static_type ( ) ,
1592+ "Load" => NodeExprContextLoad :: make_static_type ( ) ,
1593+ "Store" => NodeExprContextStore :: make_static_type ( ) ,
1594+ "Del" => NodeExprContextDel :: make_static_type ( ) ,
1595+ "boolop" => NodeBoolOp :: make_static_type ( ) ,
1596+ "And" => NodeBoolOpAnd :: make_static_type ( ) ,
1597+ "Or" => NodeBoolOpOr :: make_static_type ( ) ,
1598+ "operator" => NodeOperator :: make_static_type ( ) ,
1599+ "Add" => NodeOperatorAdd :: make_static_type ( ) ,
1600+ "Sub" => NodeOperatorSub :: make_static_type ( ) ,
1601+ "Mult" => NodeOperatorMult :: make_static_type ( ) ,
1602+ "MatMult" => NodeOperatorMatMult :: make_static_type ( ) ,
1603+ "Div" => NodeOperatorDiv :: make_static_type ( ) ,
1604+ "Mod" => NodeOperatorMod :: make_static_type ( ) ,
1605+ "Pow" => NodeOperatorPow :: make_static_type ( ) ,
1606+ "LShift" => NodeOperatorLShift :: make_static_type ( ) ,
1607+ "RShift" => NodeOperatorRShift :: make_static_type ( ) ,
1608+ "BitOr" => NodeOperatorBitOr :: make_static_type ( ) ,
1609+ "BitXor" => NodeOperatorBitXor :: make_static_type ( ) ,
1610+ "BitAnd" => NodeOperatorBitAnd :: make_static_type ( ) ,
1611+ "FloorDiv" => NodeOperatorFloorDiv :: make_static_type ( ) ,
1612+ "unaryop" => NodeUnaryOp :: make_static_type ( ) ,
1613+ "Invert" => NodeUnaryOpInvert :: make_static_type ( ) ,
1614+ "Not" => NodeUnaryOpNot :: make_static_type ( ) ,
1615+ "UAdd" => NodeUnaryOpUAdd :: make_static_type ( ) ,
1616+ "USub" => NodeUnaryOpUSub :: make_static_type ( ) ,
1617+ "cmpop" => NodeCmpOp :: make_static_type ( ) ,
1618+ "Eq" => NodeCmpOpEq :: make_static_type ( ) ,
1619+ "NotEq" => NodeCmpOpNotEq :: make_static_type ( ) ,
1620+ "Lt" => NodeCmpOpLt :: make_static_type ( ) ,
1621+ "LtE" => NodeCmpOpLtE :: make_static_type ( ) ,
1622+ "Gt" => NodeCmpOpGt :: make_static_type ( ) ,
1623+ "GtE" => NodeCmpOpGtE :: make_static_type ( ) ,
1624+ "Is" => NodeCmpOpIs :: make_static_type ( ) ,
1625+ "IsNot" => NodeCmpOpIsNot :: make_static_type ( ) ,
1626+ "In" => NodeCmpOpIn :: make_static_type ( ) ,
1627+ "NotIn" => NodeCmpOpNotIn :: make_static_type ( ) ,
1628+ "comprehension" => NodeComprehension :: make_static_type ( ) ,
1629+ "excepthandler" => NodeExceptHandler :: make_static_type ( ) ,
1630+ "ExceptHandler" => NodeExceptHandlerExceptHandler :: make_static_type ( ) ,
1631+ "arguments" => NodeArguments :: make_static_type ( ) ,
1632+ "arg" => NodeArg :: make_static_type ( ) ,
1633+ "keyword" => NodeKeyword :: make_static_type ( ) ,
1634+ "alias" => NodeAlias :: make_static_type ( ) ,
1635+ "withitem" => NodeWithItem :: make_static_type ( ) ,
1636+ "match_case" => NodeMatchCase :: make_static_type ( ) ,
1637+ "pattern" => NodePattern :: make_static_type ( ) ,
1638+ "MatchValue" => NodePatternMatchValue :: make_static_type ( ) ,
1639+ "MatchSingleton" => NodePatternMatchSingleton :: make_static_type ( ) ,
1640+ "MatchSequence" => NodePatternMatchSequence :: make_static_type ( ) ,
1641+ "MatchMapping" => NodePatternMatchMapping :: make_static_type ( ) ,
1642+ "MatchClass" => NodePatternMatchClass :: make_static_type ( ) ,
1643+ "MatchStar" => NodePatternMatchStar :: make_static_type ( ) ,
1644+ "MatchAs" => NodePatternMatchAs :: make_static_type ( ) ,
1645+ "MatchOr" => NodePatternMatchOr :: make_static_type ( ) ,
1646+ "type_ignore" => NodeTypeIgnore :: make_static_type ( ) ,
1647+ "TypeIgnore" => NodeTypeIgnoreTypeIgnore :: make_static_type ( ) ,
1648+ "type_param" => NodeTypeParam :: make_static_type ( ) ,
1649+ "TypeVar" => NodeTypeParamTypeVar :: make_static_type ( ) ,
1650+ "ParamSpec" => NodeTypeParamParamSpec :: make_static_type ( ) ,
1651+ "TypeVarTuple" => NodeTypeParamTypeVarTuple :: make_static_type ( ) ,
16521652 } ) ;
16531653
16541654 // Populate _field_types with real Python type objects
0 commit comments