Skip to content

Commit

Permalink
Merge branch 'topic/ada-tutorial' into 'master'
Browse files Browse the repository at this point in the history
Fix Libadalang.Project_Provider examples in Ada API Tutorial

See merge request eng/libadalang/libadalang!1499
  • Loading branch information
pmderodat committed Jan 8, 2024
2 parents 42d783b + 4e12781 commit 3e7d3f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions user_manual/ada_api_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ straightforward for people familiar with the ``GNATCOLL.Projects`` API:
-- and the runtime (Set_Target_And_Runtime), etc.
Project.Load (My_Project_Filename, Env);
Provider := LAL_GPR.Create_Project_Unit_Provider_Reference
(Project, Env);
Provider := LAL_GPR.Create_Project_Unit_Provider
(Tree => Project, Env => Env);
Context := LAL.Create_Context (Unit_Provider => Provider);
end;
Expand Down Expand Up @@ -424,8 +424,8 @@ from the first command-line argument:
begin
GPR.Initialize (Env);
Project.Load (Project_File, Env);
return LAL_GPR.Create_Project_Unit_Provider_Reference
(Project, Env);
return LAL_GPR.Create_Project_Unit_Provider
(Tree => Project, Env => Env);
end Load_Project;
This assumes that the first command-line argument is the name of the project
Expand Down

0 comments on commit 3e7d3f1

Please sign in to comment.