예제 #1
0
파일: Errors.cs 프로젝트: xmaxmex/Phalanger
 protected override bool Add(int id, string message, ErrorSeverity severity, int group, string /*!*/ fullPath,
                             ErrorPosition pos)
 {
     Debug.Assert(fullPath != null);
     PhpException.ThrowByWebCompiler(severity.ToPhpCompileError(), id, fullPath, pos.FirstLine, pos.FirstColumn, message);
     return(true);
 }
예제 #2
0
파일: Errors.cs 프로젝트: xmaxmex/Phalanger
        protected override bool Add(int id, string message, ErrorSeverity severity, int group, string /*!*/ fullPath,
                                    ErrorPosition pos)
        {
            Debug.Assert(fullPath != null);

            // first line column adjustment:
            if (pos.FirstLine == 1)
            {
                pos.FirstColumn += firstLineColumnDisplacement;
            }

            Debug.WriteLine("!!!3", message);

            PhpException.ThrowByEval(severity.ToPhpCompileError(), fullPath, pos.FirstLine, pos.FirstColumn, message);

            return(true);
        }
예제 #3
0
파일: Errors.cs 프로젝트: jdluzen/Phalanger
		protected override bool Add(int id, string message, ErrorSeverity severity, int group, string/*!*/ fullPath,
			ErrorPosition pos)
		{
			Debug.Assert(fullPath != null);
			PhpException.ThrowByWebCompiler(severity.ToPhpCompileError(), id, fullPath, pos.FirstLine, pos.FirstColumn, message);
			return true;
		}
예제 #4
0
파일: Errors.cs 프로젝트: jdluzen/Phalanger
		protected override bool Add(int id, string message, ErrorSeverity severity, int group, string/*!*/ fullPath,
			ErrorPosition pos)
		{
			Debug.Assert(fullPath != null);

			// first line column adjustment:
			if (pos.FirstLine == 1) pos.FirstColumn += firstLineColumnDisplacement;

			Debug.WriteLine("!!!3", message);
			
			PhpException.ThrowByEval(severity.ToPhpCompileError(), fullPath, pos.FirstLine, pos.FirstColumn, message);

			return true;
		}