-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1308 from osmedile/1301_OptimizeSymbolTable3
WI #1301 Optimize symbol table
- Loading branch information
Showing
5 changed files
with
246 additions
and
142 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
TypeCobol.Test/Parser/Programs/TypeCobol/CircularReferenceType.rdzMix.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
IDENTIFICATION DIVISION. | ||
PROGRAM-ID. CircularRefCheck. | ||
|
||
DATA DIVISION. | ||
WORKING-STORAGE SECTION. | ||
|
||
01 ThirdType TYPEDEF STRICT. | ||
Line 8[16,22] <30, Error, Semantics> - Semantic error: Type circular reference detected | ||
05 renjgrn TYPE myType. | ||
|
||
01 myType TYPEDEF STRICT. | ||
05 myVar PIC X(10). | ||
05 secondGroup pic X. | ||
Line 13[16,22] <30, Error, Semantics> - Semantic error: Type circular reference detected | ||
Line 13[16,22] <30, Error, Semantics> - Semantic error: Type circular reference detected | ||
Line 13[16,22] <30, Error, Semantics> - Semantic error: Type circular reference detected | ||
05 yhrtger TYPE ThirdType. | ||
Line 14[16,22] <30, Error, Semantics> - Semantic error: Type circular reference detected | ||
Line 14[16,22] <30, Error, Semantics> - Semantic error: Type circular reference detected | ||
Line 14[16,22] <30, Error, Semantics> - Semantic error: Type circular reference detected | ||
05 ezgoerk TYPE MySendType. | ||
|
||
01 MyGroup. | ||
Line 17[15,20] <30, Error, Semantics> - Semantic error: Variable 'MyVar1' has to be limited to level 47 because of 'myType' maximum estimated children level | ||
48 MyVar1 TYPE myType. | ||
45 MyVar2 TYPE myType. | ||
|
||
|
||
01 MySendType TYPEDEF STRICT. | ||
05 MyVariable PIC X(10). | ||
05 MySecVariable PIC X. | ||
Line 24[16,22] <30, Error, Semantics> - Semantic error: Type circular reference detected | ||
05 SelfRef TYPE myType. | ||
|
||
|
||
PROCEDURE DIVISION. | ||
move MyVar1::myVar to MyVar2::secondGroup. | ||
END PROGRAM CircularRefCheck. |
6 changes: 1 addition & 5 deletions
6
TypeCobol.Test/Parser/Programs/TypeCobol/CircularReferenceType.rdzPGM.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.