Пример #1
0
        public IntrinsicDescription Build(string intrinsicName, string functionName, IAttributesGenerator attributes)
        {
            var intrinsic = new IntrinsicDescription()
            {
                IntrinsicName = intrinsicName,
                FunctionName  = functionName,
                Attributes    = attributes
            };

            Intrinsics.Add(intrinsic);
            return(intrinsic);
        }
Пример #2
0
        public IntrinsicSignature AddSignature(IAttributesGenerator attributes, TypeName returnType, TypeName param0Type, string param0Name)
        {
            var signature = new IntrinsicSignature()
            {
                Attributes = attributes, ReturnTypeName = returnType
            };

            signature.Parameters.Add(new ParameterDescription {
                TypeName = param0Type, ParameterName = param0Name
            });
            Signatures.Add(signature);
            return(signature);
        }
Пример #3
0
 public IntrinsicSignature SetAttributes(IAttributesGenerator attributes)
 {
     Attributes = attributes;
     return(this);
 }