예제 #1
0
        private static List <CompileError> GetCompilerErrors(ParserMessageList syntaxErrors)
        {
            if (syntaxErrors.IsEmpty())
            {
                return(null);
            }

            return(syntaxErrors.Select(e => new CompileError()
            {
                Text = TranslateMessage(e)
            }).ToList());
        }
예제 #2
0
파일: Compiler.cs 프로젝트: ondrej11/o106
        private static List<CompileError> GetCompilerErrors(ParserMessageList syntaxErrors)
        {
            if (syntaxErrors.IsEmpty())
            {
                return null;
            }

            return syntaxErrors.Select(e => new CompileError()
            {
                Text = TranslateMessage(e)
            }).ToList();
        }