Lines Matching defs:sourceCode
264 ir::Statement *ETSParser::CreateStatement(std::string_view const sourceCode)
266 util::UString source {sourceCode, Allocator()};
293 ir::Statement *ETSParser::CreateFormattedStatement(std::string_view const sourceCode,
297 auto const statement = CreateStatement(sourceCode);
302 ArenaVector<ir::Statement *> ETSParser::CreateStatements(std::string_view const sourceCode)
304 util::UString source {sourceCode, Allocator()};
312 ArenaVector<ir::Statement *> ETSParser::CreateFormattedStatements(std::string_view const sourceCode,
316 auto statements = CreateStatements(sourceCode);
323 ir::AstNode *ETSParser::CreateFormattedClassFieldDefinition(std::string_view sourceCode,
329 auto *const property = CreateClassElement(sourceCode, DUMMY_ARRAY, ir::ClassDefinitionModifiers::NONE);
338 ir::AstNode *ETSParser::CreateFormattedClassMethodDefinition(std::string_view sourceCode,
344 auto *const property = CreateClassElement(sourceCode, DUMMY_ARRAY, ir::ClassDefinitionModifiers::NONE);
353 ir::AstNode *ETSParser::CreateFormattedClassElement(std::string_view sourceCode,
359 auto *const classElement = CreateClassElement(sourceCode, properties, modifiers);
367 ir::AstNode *ETSParser::CreateClassElement(std::string_view sourceCode, const ArenaVector<ir::AstNode *> &properties,
370 util::UString source {sourceCode, Allocator()};
382 ir::ClassDeclaration *ETSParser::CreateFormattedClassDeclaration(std::string_view sourceCode,
387 auto *const classDeclaration = CreateClassDeclaration(sourceCode, allowStatic);
392 ir::ClassDeclaration *ETSParser::CreateClassDeclaration(std::string_view sourceCode, bool allowStatic)
394 util::UString source {sourceCode, Allocator()};
434 std::string_view const sourceCode)
436 util::UString source {sourceCode, Allocator()};
465 ir::Expression *ETSParser::CreateExpression(std::string_view const sourceCode, ExpressionParseFlags const flags)
467 util::UString source {sourceCode, Allocator()};
480 ir::Expression *ETSParser::CreateFormattedExpression(std::string_view const sourceCode,
486 if (auto statements = CreateStatements(sourceCode);
497 ir::Statement *ETSParser::CreateTopLevelStatement(std::string_view const sourceCode)
499 util::UString source {sourceCode, Allocator()};
508 ir::Statement *ETSParser::CreateFormattedTopLevelStatement(std::string_view const sourceCode,
512 auto const statement = CreateTopLevelStatement(sourceCode);
517 ir::TypeNode *ETSParser::CreateTypeAnnotation(TypeAnnotationParsingOptions *options, std::string_view const sourceCode)
519 util::UString source {sourceCode, Allocator()};