The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
DotOperation.cs
Go to the documentation of this file.
1 using System.Collections.Generic;
2 namespace TypeSystem.Operations {
3 
4  public enum DotKind { Constrained, Unconstrained };
11  public abstract class DotOperation : TypeSystemOperation {
12 
13 
14  public abstract DotKind kindOfDot {
15  get;
16  }
17 
18  #region Factory Methods
19 
20  public static DotOperation Create(string memberName, IList<TypeExpression> previousDot) {
21  return new UnconstrainedDotOperation(memberName, previousDot);
22  }
23 
24  public static DotOperation Create(string member, MethodType methodAnalyzed, IList<TypeExpression> previousDot, ErrorManagement.Location loc) {
25  return new ConstrainedDotOperation(member, methodAnalyzed, previousDot, loc);
26  }
27 
28  #endregion
29  }
30 }
This class generatess constraits, and raises error if something is wrong. Implements a double dispatc...
This class represent the entry wnen sending a message to an operation object derived from TypeExpress...
Implements a factory method pattern. Virtual constructor. Role: factory Implements a double dispatche...
Definition: DotOperation.cs:11
static DotOperation Create(string memberName, IList< TypeExpression > previousDot)
Definition: DotOperation.cs:20
Representa a method type.
Definition: MethodType.cs:37
static DotOperation Create(string member, MethodType methodAnalyzed, IList< TypeExpression > previousDot, ErrorManagement.Location loc)
Definition: DotOperation.cs:24