Counting Goto Statements

27 views
Skip to first unread message

Carina Oberle

unread,
Dec 8, 2015, 5:11:35 PM12/8/15
to Boa Language and Infrastructure User Forum
Hi,

I would like to count the number of goto statements in C# projects, but am unsure about their internal representation. As there is no explicit statement kind for goto, I expected it to be of StatementKind.OTHER. Yet, it seems like the whole GitHub dataset (September 2015) does not contain any statements of this kind for C# projects. 

Among over 160,000 C# projects I expected at least some of them to use goto, even though it is considered harmful. 
Does anyone have some advice how to identify goto statements? Or does the absence of 'other' statements really imply the absence of gotos?

Best regards,
Carina

Robert E Dyer

unread,
Dec 8, 2015, 5:51:44 PM12/8/15
to boa-...@googlegroups.com
Hi Carina,

At the moment Boa only contains AST data (source code) for Java files.  That is why you see 0 results!

We plan to add additional languages over time (Javascript and PHP are coming soon).  I think C# might be easy to add.

Once we open source the back end processing code that generates our datasets, it would be easy for someone else to add support for more languages!

- Robert

--
More information about Boa: http://boa.cs.iastate.edu/
---
You received this message because you are subscribed to the Google Groups "Boa Language and Infrastructure User Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boa-user+u...@googlegroups.com.
To post to this group, send email to boa-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

________________________________________________
Robert Dyer | Assistant Professor | Department of Computer Science
BGSU | rd...@bgsu.edu | 419.372.3469 | 244 Hayes | Bowling Green, OH

Want to mine ultra-large-scale software repositories with minimal initial
investment? Check out Boa! http://boa.cs.iastate.edu/

Reply all
Reply to author
Forward
0 new messages