Esempio n. 1
0
        /// <summary>
        /// Report a warning for the position of current expression.
        /// </summary>
        /// <param name="flow">Flow controller of program point providing data for evaluation.</param>
        /// <param name="message">Message of the warning.</param>
        /// <param name="cause">Cause of the warning.</param>
        private static void SetWarning(FlowController flow, string message, AnalysisWarningCause cause)
        {
            var warning = new AnalysisWarning(flow.CurrentScript.FullName,
                                              message, flow.CurrentPartial, flow.CurrentProgramPoint, cause);

            AnalysisWarningHandler.SetWarning(flow.OutSet, warning);
        }
Esempio n. 2
0
        /// <summary>
        /// Report a warning for the position of current expression.
        /// </summary>
        /// <param name="message">Message of the warning.</param>
        /// <param name="cause">Cause of the warning.</param>
        protected void SetWarning(string message, AnalysisWarningCause cause)
        {
            var warning = new AnalysisWarning(flow.CurrentScript.FullName, message,
                                              flow.CurrentPartial, flow.CurrentProgramPoint, cause);

            AnalysisWarningHandler.SetWarning(OutSet, warning);
        }