Exemplo n.º 1
0
 public override object Visit(GlobalReference that, object value)
 {
     var result = (System.Text.StringBuilder) value;
     result.Append(that.Symbol);
     return null;
 }
        public override object Visit(GlobalReference that, object value = null)
        {
            PrintPrologue(that);
            PrintReference(that);
            PrintEpilogue(that);

            return null;
        }
Exemplo n.º 3
0
 public override object Visit(GlobalReference that, object value)
 {
     _writer.Write('!');
     _writer.Write(that.Symbol);
     return null;
 }
Exemplo n.º 4
0
        public override object Visit(GlobalReference that, object value = null)
        {
            /** \todo Return the final type of the member expression. */

            Object<Symbol> result = (Object<Symbol>) _symbols.Outer.Resolve(that.Symbol);
            if (result == null)
                throw new Toolbox.Error(Toolbox.ErrorKind.Fatal, that.Cursor, 0, "Unknown symbol: " + that.Symbol);

            that.Definition = result.Data.Definition;

            return (object) result.Data;
        }