Example #1
0
 public static void NoMemberAllowed(this Errors errors, ISourced sourced, string context)
 {
     errors.Help.Add(
         sourced.Source.Span,
         ErrNo.Err008,
         $"no member allowed in ``{context}´´");
 }
Example #2
0
 public static void NoFieldAllowed(this Errors errors, ISourced sourced, string context)
 {
     errors.Help.Add(
         sourced.Source.Span,
         ErrNo.Err006,
         $"no field allowed in ``{context}´´");
 }
Example #3
0
 public static void NoBehaviourAllowed(this Errors errors, ISourced sourced, string context)
 {
     errors.Help.Add(
         sourced.Source.Span,
         ErrNo.Err007,
         $"no behaviour allowed in ``{context}´´");
 }
Example #4
0
        private void ShowSource(TreeIter iter)
        {
            ISourced sourced = (ISourced)store.GetValue(iter, VALUE_OBJECT);
            Source   source  = sourced.Source;

            if ((source != null) && (SourceSelected != null))
            {
                SourceSelected(source, false);
            }
        }