SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-2271

Grammar: "include" / "import" and "use namespace" directives can be used as a statement

    Details

    • Number of attachments :
      0

      Description

      They valid inside of package, class and interface, but also can be used as a statements.
      Example of "use namespace" from http://livedocs.adobe.com/flex/3/progAS_flex3.pdf:

      // NamespaceUseCase.as
      package {
        import example.myInternal;
        import example.alpha.Utility;
      
        public class NamespaceUseCase {
          public function NamespaceUseCase() {
            use namespace myInternal; // <--
            Utility.someTask();
          }
        }
      }
      

        Issue Links

          Activity

          Hide
          Freddy Mallet added a comment -

          Manually tested !

          Show
          Freddy Mallet added a comment - Manually tested !

            People

            • Assignee:
              Evgeny Mandrikov
              Reporter:
              Evgeny Mandrikov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: