processCode method

void processCode()

Processes the file: reads content, cleans it, and extracts references.

Implementation

void processCode() {
  code = file.readAsStringSync();
  codeWoComment = removeComments(code ?? '');
  codeWoString = removeStrings(codeWoComment ?? '');
  cleanedCode = replaceCharactersWithSpaces(
    codeWoString ?? '',
    '(){}[]<>!?:.,=+-*/|&^',
  );
  if (p.basename(file.path) == 'fec_line.dart') {
    print('hello');
  }
  referenceList.clear();
  referenceList.addAll(extractReference(cleanedCode ?? ''));
}