Example #1
0
        public Parameter(Cursor cursor, SymbolDefinition name, DirectionKind direction, Type type)
            : base(NodeKind.Parameter, cursor, name)
        {
            _direction = direction;

            _type = type;
            _type.Above = this;
        }
Example #2
0
 private void EncodeDirection(Byte[] buff, DirectionKind value)
 {
     buff[1] = (byte)((buff[1] & ~0x80) | ((int)value & 0x80));
 }
Example #3
0
        private static string ToString(DirectionKind direction, bool print_in_direction = true)
        {
            string result;
            switch (direction)
            {
                case DirectionKind.In:
                    result = (print_in_direction ? "in " : "");
                    break;

                case DirectionKind.InOut:
                    result = "io ";
                    break;

                case DirectionKind.Out:
                    result = "out ";
                    break;

                default:
                    throw new System.ArgumentException("direction");
            }
            return result;
        }
Example #4
0
 private void EncodeDirection(Byte[] buff, DirectionKind value)
 {
     buff[1] = (byte)((buff[1] & ~0x80) | ((int)value & 0x80));
 }