Exemplo n.º 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}´´");
 }
Exemplo n.º 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}´´");
 }
Exemplo n.º 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}´´");
 }
Exemplo n.º 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);
            }
        }