Skip to content

MethodExtraction TestMatches (Method)

Nicholas edited this page Nov 9, 2021 · 2 revisions

Function:

static void TestMatches(MatchCollection matches, List<MethodExtraction> listToAddTo, bool refreshIndentation, Func<Match, MethodExtraction> assembler)

Description:

Tests if the matches are valid, and adds them to the the listToAddTo parameter of they are valid

Part of class MethodExtraction

Parameters Description
matches The matches to check over
listToAddTo A list of all the extracted fields. This method will add it's own extractions to this list
refreshIndentation Should this function refresh the indentation of all the methods in the list
assembler The function used for taking the match info and converting it into a