Uploaded image for project: 'ECL IDE'
  1. ECL IDE
  2. IDE-866

Fields named "TYPE" cause collapse to function incorrectly.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.2.6
    • Fix Version/s: 7.2.8
    • Component/s: IDE
    • Labels:
      None

      Description

      If a record layout has a field named "TYPE" (a keyword in its own right), it breaks the collapsing function. In these cases, collapse will ignore the immediate "END" and all "END"s on on the same level, collapsing up to the nearest parent. Try the code below:

       

      Unable to find source-code formatter for language: ecl. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      EXPORT Example_Grandparent := MODULE;
      	EXPORT Example_Parent := MODULE;
      		EXPORT Example_Child_withtypefield := RECORD
      			STRING FIELD1;
      			STRING FIELD2;
      			STRING TYPE;
      			STRING FIELD4;
      		END;//end child1
      		
      		EXPORT Example_Child_notypefield1 := RECORD
      			STRING FIELD1;
      			STRING FIELD2;
      			STRING FIELD3;
      			STRING FIELD4;
      		END;//end child2
      		
      		EXPORT Example_Child_notypefield2 := RECORD
      			STRING FIELD1;
      			STRING FIELD2;
      			STRING FIELD3;
      			STRING FIELD4;
      		END;//end child3
      	END;//end parent
      END;//end grandparent
      

        Attachments

          Activity

            People

            • Assignee:
              dehilster David de Hilster
              Reporter:
              cmattson Charles T Mattson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: