File tree Expand file tree Collapse file tree
src/Compiler/src/Compiler/XSharpCodeAnalysis/Parser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3094,7 +3094,8 @@ public override void ExitClass_([NotNull] XP.Class_Context context)
30943094
30953095 var members = GetMembers ( context , context . _Members ) ;
30963096 var baseTypes = GetBaseTypes ( context . BaseType ? . Get < TypeSyntax > ( ) , context . _Implements ) ;
3097- var primeParam = getParameters ( context . ParamList ) ;
3097+ ParameterListSyntax primeParam = null ;
3098+ if ( context . ParamList != null ) primeParam = getParameters ( context . ParamList ) ;
30983099
30993100 MemberDeclarationSyntax m ;
31003101 if ( isRecord )
@@ -3210,7 +3211,8 @@ public override void ExitStructure_([NotNull] XP.Structure_Context context)
32103211 }
32113212 var members = GetMembers ( context , context . _Members ) ;
32123213 var baseTypes = GetBaseTypes ( null , context . _Implements ) ;
3213- var primeParam = getParameters ( context . ParamList ) ;
3214+ ParameterListSyntax primeParam = null ;
3215+ if ( context . ParamList != null ) primeParam = getParameters ( context . ParamList ) ;
32143216
32153217 MemberDeclarationSyntax m ;
32163218 if ( isRecord )
You can’t perform that action at this time.
0 commit comments