Why copy and pasting class definition invokes the class parser?

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

Why copy and pasting class definition invokes the class parser?

Stéphane Ducasse
Hi 

I’m working on a nice class definition and I’m exploring….
And I wonder why copy and pasting class definition invokes the class parser?

S
--------------------------------------------
Stéphane Ducasse
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France

Reply | Threaded
Open this post in threaded view
|

Re: Why copy and pasting class definition invokes the class parser?

Martin McClure-2
This is not definite knowledge, but some code I was digging through yesterday suggests that it *might* be for syntax highlighting of the class definition.

Regards,
-Martin

On 8/27/20 11:16 AM, Stéphane Ducasse wrote:
Hi 

I’m working on a nice class definition and I’m exploring….
And I wonder why copy and pasting class definition invokes the class parser?

S
--------------------------------------------
Stéphane Ducasse
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France


Reply | Threaded
Open this post in threaded view
|

Re: Why copy and pasting class definition invokes the class parser?

Stéphane Ducasse
I got it. To determine the range of the selection the tools now use the AST. 
So this is fair.

S

On 27 Aug 2020, at 20:51, Martin McClure <[hidden email]> wrote:

This is not definite knowledge, but some code I was digging through yesterday suggests that it *might* be for syntax highlighting of the class definition.

Regards,
-Martin

On 8/27/20 11:16 AM, Stéphane Ducasse wrote:
Hi 

I’m working on a nice class definition and I’m exploring….
And I wonder why copy and pasting class definition invokes the class parser?

S
--------------------------------------------
Stéphane Ducasse
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France



--------------------------------------------
Stéphane Ducasse
03 59 35 87 52
Assistant: Aurore Dalle 
FAX 03 59 57 78 50
TEL 03 59 35 86 16
S. Ducasse - Inria
40, avenue Halley, 
Parc Scientifique de la Haute Borne, Bât.A, Park Plaza
Villeneuve d'Ascq 59650
France