Exemplo n.º 1
0
 int CreateFunctionInstance(TypeBase args, FunctionSyntax syntax, CompoundView compoundView)
 {
     var index = _list.Count;
     var f = new FunctionType(index, syntax, compoundView, args);
     _list.Add(f);
     return index;
 }
Exemplo n.º 2
0
 public SetterFunction(FunctionType parent, int index, Value body)
     : base(parent, body)
 {
     _functionId = FunctionId
         .Setter(index);
 }
Exemplo n.º 3
0
 FunctionView CreateView(FunctionType target)
     => target == null ? null : new FunctionView(target, this);
Exemplo n.º 4
0
 public ConverterAccess(FunctionType parent, CompoundType type)
 {
     Parent = parent;
     Type = type;
 }
Exemplo n.º 5
0
 public FunctionView(FunctionType item, SourceView master)
     : base(master, "Function: " + item.NodeDump)
 {
     Client = item.CreateView(Master);
     Source = item.Body.SourcePart;
 }