Skip to content

Commit e996a64

Browse files
committed
#54 - add ReturnAnalyzer service to DI
1 parent b6f2868 commit e996a64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Application/HydraScript.Application.StaticAnalysis/ServiceCollectionExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using HydraScript.Application.StaticAnalysis.Visitors;
33
using HydraScript.Domain.FrontEnd.Parser;
44
using HydraScript.Domain.FrontEnd.Parser.Impl.Ast.Nodes.Declarations;
5+
using HydraScript.Domain.FrontEnd.Parser.Impl.Ast.Nodes.Declarations.AfterTypesAreLoaded;
56
using Microsoft.Extensions.DependencyInjection;
67

78
namespace HydraScript.Application.StaticAnalysis;
@@ -24,6 +25,7 @@ public static IServiceCollection AddStaticAnalysis(this IServiceCollection servi
2425
services.AddSingleton<IAmbiguousInvocationStorage, AmbiguousInvocationStorage>();
2526

2627
services.AddSingleton<IVisitor<TypeValue, Type>, TypeBuilder>();
28+
services.AddSingleton<IVisitor<FunctionDeclaration, ReturnAnalyzerResult>, ReturnAnalyzer>();
2729

2830
services.AddSingleton<IVisitor<IAbstractSyntaxTreeNode>, SymbolTableInitializer>();
2931
services.AddSingleton<IVisitor<IAbstractSyntaxTreeNode>, TypeSystemLoader>();

0 commit comments

Comments
 (0)