Пример #1
0
        private string HtmlVar(MatchInspection matchInspection, string fileContent)
        {
            var runner = new JsMrgHtmlVarRunner(matchInspection, EnvironmentPath, fileContent);

            fileContent = runner.Run();

            return(fileContent);
        }
Пример #2
0
        public MatchInspection Operate(Match match)
        {
            var matchingStr     = match.Value; // Has been: match.Value.ToLower();
            var matchInspection = MatchInspection.CreateEmpty(match, MatchInspectionType.Error);

            if (StrHelper.IsEncapsulatedBy(matchingStr, JsMrgRunner.CommandPrefix, JsMrgRunner.CommandSuffix,
                                           out var nonEncapsulatedStr))
            {
                matchInspection.Command       = AnalyseMatch(nonEncapsulatedStr, out var possibleCommandParam);
                matchInspection.CommandParams = possibleCommandParam;

                return(matchInspection);
            }

            return(matchInspection);
        }
 public JsMrgHtmlVarRunner(MatchInspection matchInspection, string operationPath, string fileContent) : base(matchInspection, operationPath, fileContent)
 {
 }
 public JsMrgIncludeRunner(MatchInspection match, string operationPath, string fileContent) : base(match, operationPath, fileContent)
 {
 }