Lines Matching full:out
65 Out(license.str()); in Generate()
66 Out("declare const exports: any;"); in Generate()
68 Out("let ETSGLOBAL: any = (globalThis as any).Panda.getClass('LETSGLOBAL;');"); in Generate()
101 Out(separator); in GenSeparated()
145 Out("number"); in GenType()
162 Out(checkerType->ToString()); in GenType()
170 Out("[]"); in GenType()
188 Out(std::to_string(number.GetInt())); in GenLiteral()
192 Out(std::to_string(number.GetLong())); in GenLiteral()
196 Out(std::to_string(number.GetFloat())); in GenLiteral()
200 Out(std::to_string(number.GetDouble())); in GenLiteral()
212 Out("{ super(...{} as (ConstructorParameters<typeof "); in GenFunctionBody()
214 Out(">)); }"); in GenFunctionBody()
216 Out(" {}"); in GenFunctionBody()
219 Out(" {}"); in GenFunctionBody()
221 Out(methodDef != nullptr ? ": " : " => "); in GenFunctionBody()
224 Out(" { return {} as any; }"); in GenFunctionBody()
247 Out("("); in GenFunctionType()
250 Out(param->Name()); in GenFunctionType()
254 Out("?"); in GenFunctionType()
256 Out(": "); in GenFunctionType()
263 Out(", "); in GenFunctionType()
265 Out("...", sigInfo->restVar->Name().Mutf8(), ": "); in GenFunctionType()
269 Out(")"); in GenFunctionType()
277 Out(INDENT); in GenEnumType()
283 Out(GetKeyIdent(enumMember->Key())->Name().Mutf8()); in GenEnumType()
286 Out(" = "); in GenEnumType()
295 Out(","); in GenEnumType()
309 Out("string"); in GenObjectType()
313 Out("number"); // NOTE(ivagin): create precise builtin type in GenObjectType()
324 Out("any"); in GenObjectType()
331 Out("any"); in GenObjectType()
333 Out(typeName); in GenObjectType()
338 Out("<"); in GenObjectType()
340 Out(">"); in GenObjectType()
347 Out("<"); in GenTypeParameters()
349 Out(param->Name()->Name()); in GenTypeParameters()
352 Out(" extends "); in GenTypeParameters()
356 Out(">"); in GenTypeParameters()
363 Out("export {", symbolName, "};"); in GenExport()
366 Out("exports.", symbolName, " = ", symbolName, ";"); in GenExport()
374 Out("export {", symbolName, " as ", alias, "};"); in GenExport()
377 Out("exports.", alias, " = ", symbolName, ";"); in GenExport()
385 Out("export default ", symbolName, ";"); in GenDefaultExport()
388 Out("exports.default = ", symbolName, ";"); in GenDefaultExport()
414 Out("private "); in GenModifier()
417 Out("protected "); in GenModifier()
420 Out("public "); in GenModifier()
423 Out("readonly "); in GenModifier()
426 Out("static "); in GenModifier()
438 Out("import { "); in GenImportDeclaration()
450 Out(local); in GenImportDeclaration()
454 Out(" } from \"", source, "\";"); in GenImportDeclaration()
463 Out("type ", name, " = "); in GenTypeAliasDeclaration()
465 Out(";"); in GenTypeAliasDeclaration()
477 Out("enum ", enumName, " {"); in GenEnumDeclaration()
483 Out("}"); in GenEnumDeclaration()
495 Out("interface ", interfaceName); in GenInterfaceDeclaration()
499 Out(" {"); in GenInterfaceDeclaration()
514 Out("}"); in GenInterfaceDeclaration()
538 Out("class ", className); in GenClassDeclaration()
544 Out(" extends "); in GenClassDeclaration()
550 Out(" implements "); in GenClassDeclaration()
555 Out(" {"); in GenClassDeclaration()
571 Out("};"); in GenClassDeclaration()
573 …Out("(", className, " as any) = (globalThis as any).Panda.getClass('", state_.currentClassDescript… in GenClassDeclaration()
589 Out("function "); in GenMethodDeclaration()
591 Out(INDENT); in GenMethodDeclaration()
596 Out("get "); in GenMethodDeclaration()
599 Out("set "); in GenMethodDeclaration()
603 Out(methodName); in GenMethodDeclaration()
607 Out(": any"); in GenMethodDeclaration()
612 Out(";"); in GenMethodDeclaration()
616 Out("(", methodName, " as any) = ETSGLOBAL.", methodName, ";"); in GenMethodDeclaration()
620 Out(methodName, "();"); in GenMethodDeclaration()
636 Out(INDENT); in GenPropDeclaration()
638 Out(propName); in GenPropDeclaration()
640 Out(": "); in GenPropDeclaration()
643 Out(" = {} as any"); in GenPropDeclaration()
645 Out(";"); in GenPropDeclaration()
663 Out("const ", varName, ": "); in GenGlobalVarDeclaration()
665 Out(" = ETSGLOBAL.", varName, ';'); in GenGlobalVarDeclaration()