Exemplo n.º 1
0
        NameExpression ParseName()
        {
            var ident = unit.Expect(LoreToken.Identifier).Value;

            return(NameExpression.Create(unit.Location, ident));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Sets the return type.
 /// </summary>
 /// <returns>The return type.</returns>
 /// <param name="expr">Expr.</param>
 public void SetReturnType(NameExpression expr)
 {
     returnType = expr;
 }
Exemplo n.º 3
0
 public virtual void Accept(NameExpression name) => Update(name);
Exemplo n.º 4
0
 public override void Accept(NameExpression name)
 {
     base.Accept(name);
     CompileName(name);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Sets the type.
 /// </summary>
 /// <returns>The type.</returns>
 /// <param name="typeName">Type name.</param>
 public void SetType(NameExpression typeName)
 {
     type = typeName;
 }
Exemplo n.º 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);
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NamedParameter"/> class.
 /// </summary>
 /// <param name="name">Name.</param>
 NamedParameter(NameExpression name)
 {
     Name = name;
 }