lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.MainConflictChecker.PackageVisitor Class Reference

Extension of a SimpleFileVisitor that adds entries to the conflicts list in the outer class. More...

Inherits SimpleFileVisitor< Path >.

Public Member Functions

FileVisitResult visitFile (Path path, BasicFileAttributes attr)
 Report a conflicting main reactors in visited files.

Detailed Description

Extension of a SimpleFileVisitor that adds entries to the conflicts list in the outer class.

Specifically, each visited file is checked against the name present in the current file configuration. If the name matches the current file (but is not the file itself), then parse that file and determine whether there is a main reactor declared. If there is one, report a conflict.

Author
Marten Lohstroh

Member Function Documentation

◆ visitFile()

FileVisitResult org.lflang.MainConflictChecker.PackageVisitor.visitFile ( Path path,
BasicFileAttributes attr )

Report a conflicting main reactors in visited files.


The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/MainConflictChecker.java