SyntaxAnalysis

scala.meta.testkit.SyntaxAnalysis

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def onParsed[A](corpus: Iterable[CorpusFile])(f: Source => List[A]): Buffer[(CorpusFile, A)]
def run[T](corpus: IterableOnce[CorpusFile])(f: CorpusFile => List[T]): Buffer[(CorpusFile, T)]

Run syntactic analysis on a corpus of CorpusFile.

Run syntactic analysis on a corpus of CorpusFile.

Type parameters

T

The kind of analysis we want to collect.

Value parameters

corpus

The corpus to run analysis on. Has type GenTraversableOnce to support both parallel and synchronous collections.

f

Callback to analyse a single CorpusFile.

Attributes

Returns

The aggregate sum of all analysis results.