Skip to content

Commit

Permalink
adds missing accessibility pragmas
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu committed Nov 24, 2023
1 parent d80a858 commit c808a50
Show file tree
Hide file tree
Showing 63 changed files with 346 additions and 334 deletions.
472 changes: 161 additions & 311 deletions src/AXSharp.blazor/tests/sandbox/ax-blazor-example/apax-lock.json

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions src/AXSharp.blazor/tests/sandbox/ax-blazor-example/apax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ targets:
- "1500"
- axunit-llvm
devDependencies:
"@ax/sdk": 3.0.2
"@ax/sld": ^0.14.2
"@ax/sdk": ^4.0.12
"@ax/sld": ^2.0.5
scripts:
ixc:
- dotnet run --project ..\\..\\..\\..\\AXSharp.compiler\\src\\ixc\\AXSharp.ixc.csproj --framework net7.0

ixc:
- dotnet run --project
..\\..\\..\\..\\AXSharp.compiler\\src\\ixc\\AXSharp.ixc.csproj --framework
net7.0
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{S7.extern=ReadWrite}
CLASS CU00x EXTENDS CUBase
VAR PUBLIC
_cuName: STRING;
END_VAR
END_CLASS

{S7.extern=ReadWrite}
CLASS CUBase
VAR PUBLIC
_baseName : STRING;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS GroupBox_other
VAR PUBLIC
{#ix-set:AttributeName = "B1"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS MAIN
VAR PUBLIC
{#ix-set:AttributeName = "<#Hello#> <#World#>"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS TcoIxObject
VAR PUBLIC
ix_bool : BOOL;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS TestEmpty
VAR PUBLIC

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
{#ix-attr:[Container(Layout.UniformGrid)]}
CLASS TestLayoutOverwriting
VAR PUBLIC
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS TestMixed
VAR PUBLIC
{#ix-attr:[Container(Layout.Wrap)]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS TestMultipleLayouts
VAR PUBLIC
{#ix-set:AttributeName = "B1"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS TestSimple
VAR PUBLIC
{#ix-set:AttributeName = "A1"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS TestSimpleNested
VAR PUBLIC
{#ix-attr:[Container(Layout.Tabs)]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS TestStruct
VAR PUBLIC
e:INT;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS TestStructMultipleGroups
VAR PUBLIC
e:INT;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS TestStructOneGroupWithLayout
VAR PUBLIC
{#ix-attr:[Container(Layout.Wrap)]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS TestStructWithMainLayout
VAR PUBLIC
e:INT;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS TestWithoutLayouts
VAR PUBLIC
ix_bool : BOOL;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS IxComponent
VAR PUBLIC
ix_bool : BOOL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ CONFIGURATION MyConfiguration
PROGRAM P1 WITH Main: MyProgram;

VAR_GLOBAL
{S7.extern=ReadWrite}
testingProgram : testingProgram;
{S7.extern=ReadWrite}
prgWeatherStations : prgWeatherStations;
{S7.extern=ReadWrite}
MAINC : MAIN;
END_VAR
END_CONFIGURATION
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS fbWorldWeatherWatch
VAR PUBLIC
{#ix-attr:[Container(Layout.Stack)]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
{#ix-attr:[Container(Layout.Stack)]}
CLASS prgWeatherStations
VAR PUBLIC
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stBlazor
VAR PUBLIC
{#ix-set:AttributeName = "<#Integer From PLC#>"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stComplex
VAR PUBLIC
{#ix-set:AttributeName = "<#Integer From PLC#>"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stComplexUnknown
VAR PUBLIC
{#ix-set:AttributeName = "<#String unknown From PLC#>"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stExample
VAR PUBLIC
{#ix-attr:[Container(Layout.Tabs)]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stLayouts
VAR
{#ix-set:AttributeName = "B1"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stMultipleLayouts
VAR PUBLIC
{#ix-attr:[Container(Layout.Tabs)]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stSimplePrimitive
VAR PUBLIC
{#ix-set:AttributeName = "<#Test Integer#>"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stTest
VAR PUBLIC
p1:INT;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stTest2
VAR
testVarString: STRING;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stTest3
VAR PUBLIC
ix_bool : BOOL;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stTestComplex
VAR PUBLIC
{#ix-set:AttributeName = "<#Integer From PLC#>"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stTestLayouts
VAR PUBLIC
{#ix-attr:[Container(Layout.Stack)]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stTestMultipleNested
VAR PUBLIC
{#ix-attr:[Container(Layout.Tabs)]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stTestNested
VAR PUBLIC
{#ix-attr:[Container(Layout.Wrap)]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stTestPrimitive
VAR PUBLIC
{#ix-set:AttributeName = "<#Integer From PLC#>"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS stTestRenderIgnore
VAR PUBLIC
{#ix-attr:[RenderIgnore()]}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS structWeatherStation
VAR PUBLIC
{#ix-set:AttributeName = "Station name (ICAO)"}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS testingProgram
VAR PUBLIC
{#ix-set:AttributeName = "instanceOfStPrimitive"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ USING AxUnit;
NAMESPACE MyTest

{TestFixture}
{S7.extern=ReadWrite}
CLASS MyTestFixture
{Test}
METHOD PUBLIC MyTestMethod
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "hello.world.console.plc", "ix\hello.world.console.plc.csproj", "{95967F31-AD7A-45FB-99A5-9D93FF332979}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "hello_world_console_plc", "ix\hello_world_console_plc.csproj", "{4A4210C5-BB3A-49EA-A83C-E8BA2D7EEBF3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{95967F31-AD7A-45FB-99A5-9D93FF332979}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{95967F31-AD7A-45FB-99A5-9D93FF332979}.Debug|Any CPU.Build.0 = Debug|Any CPU
{95967F31-AD7A-45FB-99A5-9D93FF332979}.Release|Any CPU.ActiveCfg = Release|Any CPU
{95967F31-AD7A-45FB-99A5-9D93FF332979}.Release|Any CPU.Build.0 = Release|Any CPU
{4A4210C5-BB3A-49EA-A83C-E8BA2D7EEBF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4A4210C5-BB3A-49EA-A83C-E8BA2D7EEBF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4A4210C5-BB3A-49EA-A83C-E8BA2D7EEBF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4A4210C5-BB3A-49EA-A83C-E8BA2D7EEBF3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {667D7F77-00F5-4DAB-B2AF-06185DE7B48D}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ CONFIGURATION MyConfiguration
PROGRAM P1 WITH Main: MyProgram;

VAR_GLOBAL
{S7.extern=ReadWrite}
Counter : ULINT;
{S7.extern=ReadWrite}
HelloWorld : STRING := 'Hello world';
END_VAR
END_CONFIGURATION
25 changes: 25 additions & 0 deletions src/sanbox/integration/ix-integration-plc/ix-integration-plc.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ix_integration_plc", "ix\ix_integration_plc.csproj", "{D26353F3-13BB-4EF2-8737-64394B9F727B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D26353F3-13BB-4EF2-8737-64394B9F727B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D26353F3-13BB-4EF2-8737-64394B9F727B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D26353F3-13BB-4EF2-8737-64394B9F727B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D26353F3-13BB-4EF2-8737-64394B9F727B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E0DF88D2-E674-451C-92AB-7F9FCDB9E244}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -60,54 +60,54 @@
</resheader>
<data name="Integer_From_PLC" xml:space="preserve">
<value>Integer From PLC</value>
<comment>src\compositeLayout.st,2</comment>
<comment>src\compositeLayout.st,3</comment>
</data>
<data name="UInteger_From_PLC" xml:space="preserve">
<value>UInteger From PLC</value>
<comment>src\compositeLayout.st,4</comment>
<comment>src\compositeLayout.st,5</comment>
</data>
<data name="STRING_From_PLC" xml:space="preserve">
<value>STRING From PLC</value>
<comment>src\compositeLayout.st,6</comment>
<comment>src\compositeLayout.st,7</comment>
</data>
<data name="Task" xml:space="preserve">
<value>Task</value>
<comment>src\compositeLayout.st,8</comment>
<comment>src\compositeLayout.st,9</comment>
</data>
<data name="LREAL_From_PLC" xml:space="preserve">
<value>LREAL From PLC</value>
<comment>src\compositeLayout.st,11</comment>
<comment>src\compositeLayout.st,12</comment>
</data>
<data name="BOOL_From_PLC" xml:space="preserve">
<value>BOOL From PLC</value>
<comment>src\compositeLayout.st,13</comment>
<comment>src\compositeLayout.st,14</comment>
</data>
<data name="DATE_From_PLC" xml:space="preserve">
<value>DATE From PLC</value>
<comment>src\compositeLayout.st,15</comment>
<comment>src\compositeLayout.st,16</comment>
</data>
<data name="DATE_UNDERSCORE_AND_UNDERSCORE_TIME_From_PLC" xml:space="preserve">
<value>DATE_AND_TIME From PLC</value>
<comment>src\compositeLayout.st,17</comment>
<comment>src\compositeLayout.st,18</comment>
</data>
<data name="TIME_UNDERSCORE_OF_UNDERSCORE_DAY_From_PLC" xml:space="preserve">
<value>TIME_OF_DAY From PLC</value>
<comment>src\compositeLayout.st,19</comment>
<comment>src\compositeLayout.st,20</comment>
</data>
<data name="WORD_From_PLC" xml:space="preserve">
<value>WORD From PLC</value>
<comment>src\test\border.st,10</comment>
<comment>src\test\border.st,11</comment>
</data>
<data name="BYTE_From_PLC" xml:space="preserve">
<value>BYTE From PLC</value>
<comment>src\test\border.st,12</comment>
<comment>src\test\border.st,13</comment>
</data>
<data name="REAL_From_PLC" xml:space="preserve">
<value>REAL From PLC</value>
<comment>src\test\border.st,14</comment>
<comment>src\test\border.st,15</comment>
</data>
<data name="ENUM_Station_status" xml:space="preserve">
<value>ENUM Station status</value>
<comment>src\test\border.st,26</comment>
<comment>src\test\border.st,27</comment>
</data>
</root>
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS all_primitives
VAR PUBLIC
myBOOL : BOOL ;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{S7.extern=ReadWrite}
CLASS compositeLayout
VAR PUBLIC
{#ix-set:AttributeName = "<#Integer From PLC#>"}
Expand Down
Loading

0 comments on commit c808a50

Please sign in to comment.