File tree Expand file tree Collapse file tree 2 files changed +25
-25
lines changed Expand file tree Collapse file tree 2 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -31,30 +31,6 @@ bool Parser::IsES6DestructuringEnabled() const
31
31
return m_scriptContext->GetConfig ()->IsES6DestructuringEnabled ();
32
32
}
33
33
34
- struct StmtNest
35
- {
36
- union
37
- {
38
- struct
39
- {
40
- ParseNodeStmt * pnodeStmt; // This statement node.
41
- };
42
- struct
43
- {
44
- bool isDeferred : 1 ;
45
- OpCode op; // This statement operation.
46
- };
47
- };
48
- LabelId* pLabelId; // Labels for this statement.
49
- StmtNest *pstmtOuter; // Enclosing statement.
50
-
51
- OpCode GetNop () const
52
- {
53
- AnalysisAssert (isDeferred || pnodeStmt != nullptr );
54
- return isDeferred ? op : pnodeStmt->nop ;
55
- }
56
- };
57
-
58
34
struct BlockInfoStack
59
35
{
60
36
StmtNest pstmt;
Original file line number Diff line number Diff line change @@ -76,8 +76,32 @@ struct PidRefStack;
76
76
77
77
struct DeferredFunctionStub ;
78
78
79
- struct StmtNest ;
80
79
struct BlockInfoStack ;
80
+
81
+ struct StmtNest
82
+ {
83
+ union
84
+ {
85
+ struct
86
+ {
87
+ ParseNodeStmt * pnodeStmt; // This statement node.
88
+ };
89
+ struct
90
+ {
91
+ bool isDeferred : 1 ;
92
+ OpCode op; // This statement operation.
93
+ };
94
+ };
95
+ LabelId* pLabelId; // Labels for this statement.
96
+ StmtNest *pstmtOuter; // Enclosing statement.
97
+
98
+ inline OpCode GetNop () const
99
+ {
100
+ AnalysisAssert (isDeferred || pnodeStmt != nullptr );
101
+ return isDeferred ? op : pnodeStmt->nop ;
102
+ }
103
+ };
104
+
81
105
struct ParseContext
82
106
{
83
107
LPCUTF8 pszSrc;
You can’t perform that action at this time.
0 commit comments