Skip to content

Commit 7237a1e

Browse files
committed
parser: Fix typo in FB_ERRMSG_ILLEGALOUTSIDEANPROPERTY
"a property", not "an property"
1 parent 0a2a991 commit 7237a1e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/compiler/error.bi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ enum FB_ERRMSG
195195
FB_ERRMSG_PARAMCNTFORPROPGET
196196
FB_ERRMSG_PARAMCNTFORPROPSET
197197
FB_ERRMSG_EXPECTEDPROPERTY
198-
FB_ERRMSG_ILLEGALOUTSIDEANPROPERTY
198+
FB_ERRMSG_ILLEGALOUTSIDEAPROPERTY
199199
FB_ERRMSG_PROPERTYHASNOGETMETHOD
200200
FB_ERRMSG_PROPERTYHASNOSETMETHOD
201201
FB_ERRMSG_PROPERTYHASNOIDXGETMETHOD

src/compiler/parser-compound.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ sub cExitStatement( )
301301
dim errmsg as integer
302302
select case as const( tk )
303303
case FB_TK_SUB : errmsg = FB_ERRMSG_ILLEGALOUTSIDEASUB
304-
case FB_TK_PROPERTY : errmsg = FB_ERRMSG_ILLEGALOUTSIDEANPROPERTY
304+
case FB_TK_PROPERTY : errmsg = FB_ERRMSG_ILLEGALOUTSIDEAPROPERTY
305305
case FB_TK_OPERATOR : errmsg = FB_ERRMSG_ILLEGALOUTSIDEANOPERATOR
306306
case FB_TK_CONSTRUCTOR : errmsg = FB_ERRMSG_ILLEGALOUTSIDEACTOR
307307
case FB_TK_DESTRUCTOR : errmsg = FB_ERRMSG_ILLEGALOUTSIDEADTOR
@@ -341,7 +341,7 @@ sub cExitStatement( )
341341
if( symbIsProperty( parser.currproc ) ) then
342342
errnum = hCheckForCtorResult( )
343343
else
344-
errnum = FB_ERRMSG_ILLEGALOUTSIDEANPROPERTY
344+
errnum = FB_ERRMSG_ILLEGALOUTSIDEAPROPERTY
345345
end if
346346

347347
case FB_TK_OPERATOR

src/compiler/parser-proccall.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,13 +802,13 @@ function cProcCallOrAssign _
802802
'' no need to check for '=', that was done already by Declaration()
803803

804804
if( fbIsModLevel( ) ) then
805-
errReport( FB_ERRMSG_ILLEGALOUTSIDEANPROPERTY )
805+
errReport( FB_ERRMSG_ILLEGALOUTSIDEAPROPERTY )
806806
'' error recovery: skip stmt, return
807807
hSkipStmt( )
808808
return TRUE
809809
else
810810
if( symbIsProperty( parser.currproc ) = FALSE ) then
811-
errReport( FB_ERRMSG_ILLEGALOUTSIDEANPROPERTY )
811+
errReport( FB_ERRMSG_ILLEGALOUTSIDEAPROPERTY )
812812
end if
813813
end if
814814

0 commit comments

Comments
 (0)