SyntaxErrorNotification api question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SyntaxErrorNotification api question

stepharo
Hi marcus

we

SyntaxErrorNotification>>setClass: aClass category: aCategory code:
codeString doitFlag: aBoolean errorMessage: errorString location: anInteger
     inClass := aClass.
     category := aCategory.
     code := codeString.
     doitFlag := aBoolean.
     messageText := errorString.
     location := anInteger


and I wonder what is the category? I imagine that this is a method
protocol more than a class category?

I would like to add

setClass: aClass protocol: aProtocol code: codeString doitFlag: aBoolean
errorMessage: errorString location: anInteger
     inClass := aClass.
     category := aCategory.
     code := codeString.
     doitFlag := aBoolean.
     messageText := errorString.
     location := anInteger

and keep the other as backward compatibility.

Stef

Reply | Threaded
Open this post in threaded view
|

Re: SyntaxErrorNotification api question

Marcus Denker-4
There is already an issue about it:

11657 A Compiler compiles, it does not classify and hence need no category
        https://pharo.fogbugz.com/f/cases/11657

I want to clean that up after we remove the old compiler. I do not have the man power to do it
for both, especially considering this would be completely wasted effort.

        Marcus

> On 31 May 2015, at 07:51, stepharo <[hidden email]> wrote:
>
> Hi marcus
>
> we
>
> SyntaxErrorNotification>>setClass: aClass category: aCategory code: codeString doitFlag: aBoolean errorMessage: errorString location: anInteger
>    inClass := aClass.
>    category := aCategory.
>    code := codeString.
>    doitFlag := aBoolean.
>    messageText := errorString.
>    location := anInteger
>
>
> and I wonder what is the category? I imagine that this is a method protocol more than a class category?
>
> I would like to add
>
> setClass: aClass protocol: aProtocol code: codeString doitFlag: aBoolean errorMessage: errorString location: anInteger
>    inClass := aClass.
>    category := aCategory.
>    code := codeString.
>    doitFlag := aBoolean.
>    messageText := errorString.
>    location := anInteger
>
> and keep the other as backward compatibility.
>
> Stef
>