Skip to content

Commit

Permalink
[Validator] Complaint about no entry point only if their are aspects
Browse files Browse the repository at this point in the history
  • Loading branch information
fcoulon committed Jan 22, 2016
1 parent 464a714 commit 32c5d99
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -720,7 +720,7 @@ class MelangeValidator extends AbstractMelangeValidator
@Check
def checkEntryPoints(Language lang){
val entries = lang.entryPoints
if(entries.isEmpty && lang.ecl.isEmpty){
if(entries.isEmpty && lang.ecl.isEmpty && !lang.semantics.isEmpty){
warning(
"Language "+lang.name+" doesn't define entry point. An Aspect's method should be tagged with @Main to be identified as an entry point for the execution.",
MelangePackage.Literals.LANGUAGE__EXACT_TYPE,
Expand Down

0 comments on commit 32c5d99

Please sign in to comment.