@@ -104,13 +104,39 @@ public enum ScopeType {
104104 }
105105
106106 public enum MScope {
107- MODULE ("Module" , ScopeType .MODULE_LIKE , 1 , 0 , 0 ), BLOCK ("Block" , ScopeType .MODULE_LIKE , 1 , 0 , 0 ), DYNAMICMODULE ("DynamicModule" , ScopeType .MODULE_LIKE , 1 , 0 , 0 ), WITH ("With" , ScopeType .MODULE_LIKE , -1 , 0 , -2 ), FUNCTION ("Function" , ScopeType .FUNCTION_LIKE , 1 , 0 , 0 ), TABLE ("Table" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ), DO ("Do" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ), SUM ("Sum" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ), NSUM ("NSum" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ), INTEGRATE ("Integrate" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ), NINTEGRATE ("NIntegrate" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ),
108-
109- PLOT ("Plot" , ScopeType .TABLE_LIKE , 0 , 1 , 1 ), PLOT3D ("Plot3D" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ), CONTOURPLOT ("ContourPlot" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ), CONTOURPLOT3D ("ContourPlot3D" , ScopeType .TABLE_LIKE , 0 , 1 , 3 ), PARAMETRICPLOT ("ParametricPlot" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ), PARAMETRICPLOT3D ("ParametricPlot3D" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ), STREAMPLOT ("StreamPlot" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ), STREAMDENSITYPLOT ("StreamDensityPlot" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ), VECTORPLOT ("VectorPlot" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ), VECTORPLOT3D ("VectorPlot3D" , ScopeType .TABLE_LIKE , 0 , 1 , 3 ),
110-
111- LIMIT ("Limit" , ScopeType .LIMIT_LIKE , 0 , 1 , 1 ), MANIPULATE ("Manipulate" , ScopeType .MANIPULATE_LIKE , 0 , 1 , -1 ), COMPILE ("Compile" , ScopeType .COMPILE_LIKE , 1 , 0 , 0 ), // The last entries because they are not directly connected to a function call with a special head,
107+ MODULE ("Module" , ScopeType .MODULE_LIKE , 1 , 0 , 0 ),
108+ BLOCK ("Block" , ScopeType .MODULE_LIKE , 1 , 0 , 0 ),
109+ DYNAMICMODULE ("DynamicModule" , ScopeType .MODULE_LIKE , 1 , 0 , 0 ),
110+ WITH ("With" , ScopeType .MODULE_LIKE , -1 , 0 , -2 ),
111+ FUNCTION ("Function" , ScopeType .FUNCTION_LIKE , 1 , 0 , 0 ),
112+ TABLE ("Table" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ),
113+ DO ("Do" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ),
114+ SUM ("Sum" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ),
115+ NSUM ("NSum" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ),
116+ INTEGRATE ("Integrate" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ),
117+ NINTEGRATE ("NIntegrate" , ScopeType .TABLE_LIKE , 0 , 1 , -1 ),
118+ PLOT ("Plot" , ScopeType .TABLE_LIKE , 0 , 1 , 1 ),
119+ PLOT3D ("Plot3D" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ),
120+ CONTOURPLOT ("ContourPlot" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ),
121+ CONTOURPLOT3D ("ContourPlot3D" , ScopeType .TABLE_LIKE , 0 , 1 , 3 ),
122+ PARAMETRICPLOT ("ParametricPlot" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ),
123+ PARAMETRICPLOT3D ("ParametricPlot3D" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ),
124+ STREAMPLOT ("StreamPlot" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ),
125+ STREAMDENSITYPLOT ("StreamDensityPlot" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ),
126+ VECTORPLOT ("VectorPlot" , ScopeType .TABLE_LIKE , 0 , 1 , 2 ),
127+ VECTORPLOT3D ("VectorPlot3D" , ScopeType .TABLE_LIKE , 0 , 1 , 3 ),
128+ LIMIT ("Limit" , ScopeType .LIMIT_LIKE , 0 , 1 , 1 ),
129+ MANIPULATE ("Manipulate" , ScopeType .MANIPULATE_LIKE , 0 , 1 , -1 ),
130+ COMPILE ("Compile" , ScopeType .COMPILE_LIKE , 1 , 0 , 0 ),
131+ // The last entries because they are not directly connected to a function call with a special head,
112132 // because we create the scope from the PsiElement automatically.
113- ANONYMOUS_FUNCTION_SCOPE ("AnonymousFunction Scope" , ScopeType .ANONYMOUS_FUNCTION_LIKE , 0 , 1 , 1 ), RULEDELAYED_SCOPE ("RuleDelayed Scope" , ScopeType .RULE_LIKE , 1 , 0 , 0 ), SETDELAYED_SCOPE ("SetDelayed Scope" , ScopeType .RULE_LIKE , 1 , 0 , 0 ), KERNEL_SCOPE ("Kernel Scope" ), FILE_SCOPE ("File Scope" ), IMPORT_SCOPE ("Import Scope" ), NULL_SCOPE ("Null Scope" );
133+ ANONYMOUS_FUNCTION_SCOPE ("AnonymousFunction Scope" , ScopeType .ANONYMOUS_FUNCTION_LIKE , 0 , 1 , 1 ),
134+ RULEDELAYED_SCOPE ("RuleDelayed Scope" , ScopeType .RULE_LIKE , 1 , 0 , 0 ),
135+ SETDELAYED_SCOPE ("SetDelayed Scope" , ScopeType .RULE_LIKE , 1 , 0 , 0 ),
136+ KERNEL_SCOPE ("Kernel Scope" ),
137+ FILE_SCOPE ("File Scope" ),
138+ IMPORT_SCOPE ("Import Scope" ),
139+ NULL_SCOPE ("Null Scope" );
114140
115141 final String myName ;
116142 final ScopeType myType ;
@@ -171,6 +197,4 @@ public int getScopePositionEnd() {
171197 return myScopePositionEnd ;
172198 }
173199 }
174-
175-
176200}
0 commit comments