Beispiel #1
0
        NameExpression ParseName()
        {
            var ident = unit.Expect(LoreToken.Identifier).Value;

            return(NameExpression.Create(unit.Location, ident));
        }
 /// <summary>
 /// Sets the return type.
 /// </summary>
 /// <returns>The return type.</returns>
 /// <param name="expr">Expr.</param>
 public void SetReturnType(NameExpression expr)
 {
     returnType = expr;
 }
Beispiel #3
0
 public virtual void Accept(NameExpression name) => Update(name);
 public override void Accept(NameExpression name)
 {
     base.Accept(name);
     CompileName(name);
 }
Beispiel #5
0
 /// <summary>
 /// Sets the type.
 /// </summary>
 /// <returns>The type.</returns>
 /// <param name="typeName">Type name.</param>
 public void SetType(NameExpression typeName)
 {
     type = typeName;
 }
Beispiel #6
0
 /// <summary>
 /// Create a new instance of the <see cref="NamedParameter"/> class.
 /// </summary>
 /// <param name="name">Name.</param>
 public static NamedParameter Create(NameExpression name) => new NamedParameter(name);
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NamedParameter"/> class.
 /// </summary>
 /// <param name="name">Name.</param>
 NamedParameter(NameExpression name)
 {
     Name = name;
 }