void CompileTask(TongCompilerContext.DocumentContext docContext, ScriptNode interfaceNode) { var linkCache = interfaceNode.As <ScriptNodeLinkCache>(); foreach (var connection in linkCache.FromThisNode) { } docContext.CompiledInterfaces.Add(new object()); }
void CompileInterface(TongCompilerContext.DocumentContext docContext, ScriptNode interfaceNode) { var linkCache = interfaceNode.As <ScriptNodeLinkCache>(); var signalConnections = GetSignalOutputs(linkCache); if (signalConnections.Count == 0) { return; } // interface only allow single output if (signalConnections.Count > 1) { return; } BytecodeGenContext byteCodeGenContext = new BytecodeGenContext(); BuildByteCodeForInput(byteCodeGenContext, signalConnections[0]); docContext.CompiledInterfaces.Add(byteCodeGenContext.Builder); }