コード例 #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);
        }
コード例 #3
0
 public JsMrgHtmlVarRunner(MatchInspection matchInspection, string operationPath, string fileContent) : base(matchInspection, operationPath, fileContent)
 {
 }
コード例 #4
0
 public JsMrgIncludeRunner(MatchInspection match, string operationPath, string fileContent) : base(match, operationPath, fileContent)
 {
 }