Ejemplo n.º 1
0
 internal ArgumentData(string name, IReadOnlyType type, IReadOnlyFunction owner, Preposition prep)
 {
     this.Name = name;
     this.Type = type;
     this.Owner = owner;
     this.AlternateAccess = prep;
 }
Ejemplo n.º 2
0
        private void PrintFunction(IReadOnlyFunction function)
        {
            var argsAsStrings = function.AllArguments.Select(PrintArgument);
            string arguments = String.Join(", ", argsAsStrings);

            AppendFormatLine("public {0} {1}({2})", function.ReturnType.Name, function.Name, arguments);
            AppendLine("{");

            indentLevel++;
            foreach (IReadOnlyExpression expression in function.Expressions.Expressions)
            {
                PrintExpression(expression);
            }
            indentLevel--;

            AppendLine("}");
            AppendLine();
        }
Ejemplo n.º 3
0
 internal ArgumentData(string name, IReadOnlyType type, IReadOnlyFunction owner)
     : this(name, type, owner, Preposition.NONE)
 {
 }