Exemple #1
0
        protected override void ParseCsFiles()
        {
            base.ParseCsFiles();
            var errors = NFiles.SelectMany(t => t.SyntaxTree.Errors).ToList();

            if (errors.Count == 0)
            {
                return;
            }
            foreach (var error in errors)
            {
                var item = new CompilerLogItem
                {
                    ProjectRelativeFilename = error.Region.FileName,
                    Line   = error.Region.BeginLine,
                    Column = error.Region.BeginColumn,
                    Text   = error.Message,
                    Type   = CompilerLogItemType.Error,
                };
                if (error.ErrorType == ErrorType.Warning)
                {
                    item.Type = CompilerLogItemType.Warning;
                }
                Compiler.Log.Log(item);
            }
        }
Exemple #2
0
        protected virtual void ParseCsFiles()
        {
            var ms = StopwatchHelper.TimeInMs(() => NFiles.ForEach(ParseSkFile));

            FormatLine("{0} Sources files {1}ms", NFiles.Count, ms);
        }