WHERE INSTANCES HAPPEN
OCCURENCE is made of two aspects :
The matching rule(s) define(s) the lexical conditions required for a MOTIF'S INSTANCE to appear,
The transformations, returned by applying the
transform
method to every rules matching results.
Experimental :
occurences: [
{
level: //,
regExp: /(.*)\/_motifs\/(.*)\/(.*).motif.js/,
folderMatch: //,
fileMatch: //,
propMatch: //,
transform: ([ scope, folderName, fileName ]) => ({
scope,
folderName,
fileName
})
}
]
Back to home.