Esempio 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;
 }
Esempio n. 2
0
 public SetterFunction(FunctionType parent, int index, Value body)
     : base(parent, body)
 {
     _functionId = FunctionId
         .Setter(index);
 }
Esempio n. 3
0
 FunctionView CreateView(FunctionType target)
     => target == null ? null : new FunctionView(target, this);
Esempio n. 4
0
 public ConverterAccess(FunctionType parent, CompoundType type)
 {
     Parent = parent;
     Type = type;
 }
Esempio n. 5
0
 public FunctionView(FunctionType item, SourceView master)
     : base(master, "Function: " + item.NodeDump)
 {
     Client = item.CreateView(Master);
     Source = item.Body.SourcePart;
 }