Lines Matching defs:sourceCode
101 ir::Expression *CreateExpression(std::string_view sourceCode,
104 ir::Expression *CreateFormattedExpression(std::string_view sourceCode, std::vector<ir::AstNode *> &insertingNodes);
107 ir::Expression *CreateFormattedExpression(std::string_view const sourceCode, Args &&...args)
112 return CreateFormattedExpression(sourceCode, insertingNodes);
115 ir::Statement *CreateFormattedStatement(std::string_view sourceCode, std::vector<ir::AstNode *> &insertingNodes);
118 ir::Statement *CreateFormattedStatement(std::string_view const sourceCode, Args &&...args)
123 return CreateFormattedStatement(sourceCode, insertingNodes);
126 ArenaVector<ir::Statement *> CreateStatements(std::string_view sourceCode);
128 ArenaVector<ir::Statement *> CreateFormattedStatements(std::string_view sourceCode,
132 ArenaVector<ir::Statement *> CreateFormattedStatements(std::string_view const sourceCode, Args &&...args)
137 return CreateFormattedStatements(sourceCode, insertingNodes);
140 ir::ClassDeclaration *CreateFormattedClassDeclaration(std::string_view sourceCode,
145 ir::ClassDeclaration *CreateFormattedClassDeclaration(std::string_view sourceCode, bool allowStatic, Args &&...args)
150 return CreateFormattedClassDeclaration(sourceCode, insertingNodes, allowStatic);
153 ir::AstNode *CreateFormattedClassElement(std::string_view sourceCode, std::vector<ir::AstNode *> &insertingNodes,
158 ir::AstNode *CreateFormattedClassElement(std::string_view sourceCode, const ArenaVector<ir::AstNode *> &properties,
164 return CreateFormattedClassElement(sourceCode, insertingNodes, properties, modifiers);
168 ir::AstNode *CreateFormattedClassElement(std::string_view sourceCode, ir::ClassDefinition *classDefinition,
171 return CreateFormattedClassElement(sourceCode, classDefinition->Body(), classDefinition->Modifiers(),
175 ir::AstNode *CreateFormattedClassFieldDefinition(std::string_view sourceCode,
179 ir::AstNode *CreateFormattedClassFieldDefinition(std::string_view const sourceCode, Args &&...args)
184 return CreateFormattedClassFieldDefinition(sourceCode, insertingNodes);
187 ir::AstNode *CreateFormattedClassMethodDefinition(std::string_view sourceCode,
191 ir::AstNode *CreateFormattedClassMethodDefinition(std::string_view const sourceCode, Args &&...args)
196 return CreateFormattedClassMethodDefinition(sourceCode, insertingNodes);
199 ir::Statement *CreateFormattedTopLevelStatement(std::string_view sourceCode,
203 ir::Statement *CreateFormattedTopLevelStatement(std::string_view sourceCode, Args &&...args)
208 return CreateFormattedTopLevelStatement(sourceCode, insertingNodes);
224 ir::Statement *CreateStatement(std::string_view sourceCode);
226 ir::MethodDefinition *CreateConstructorDefinition(ir::ModifierFlags modifiers, std::string_view sourceCode);
228 ir::ClassDeclaration *CreateClassDeclaration(std::string_view sourceCode, bool allowStatic = false);
229 ir::AstNode *CreateClassElement(std::string_view sourceCode, const ArenaVector<ir::AstNode *> &properties,
232 ir::TypeNode *CreateTypeAnnotation(TypeAnnotationParsingOptions *options, std::string_view sourceCode);
233 ir::Statement *CreateTopLevelStatement(std::string_view const sourceCode);