Example #1
0
 public override void ExitUsingDeclarationWithPath([NotNull] SBP.UsingDeclarationWithPathContext context)
 {
     if (!m_file.TypeScanIncluded)
     {
         var path = context.GetChild(1).GetText();
         path = ParseStringLiteral(path, context);
         // TODO: check the path
         m_file.AddFileUsing(context.Start.Line, path);
     }
 }
Example #2
0
 public override void ExitUsingDeclarationWithPath([NotNull] SBP.UsingDeclarationWithPathContext context)
 {
     if (context.ChildCount == 3)
     {
         m_usings.Add(new UsingData(context.Start.Line, "p", StepBroListener.ParseStringLiteral(context.GetChild(1).GetText(), context)));
     }
     else if (context.ChildCount == 4)
     {
         m_usings.Add(new UsingData(context.Start.Line, "P", StepBroListener.ParseStringLiteral(context.GetChild(2).GetText(), context)));
     }
 }
Example #3
0
 public override void EnterUsingDeclarationWithPath([NotNull] SBP.UsingDeclarationWithPathContext context)
 {
 }