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); } }
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))); } }
public override void EnterUsingDeclarationWithPath([NotNull] SBP.UsingDeclarationWithPathContext context) { }