Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7868877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:08:13+00:00 2026-06-03T01:08:13+00:00

If I have a semantic symbol lets say a parameter coming in to a

  • 0

If I have a semantic symbol lets say a parameter coming in to a method, Can I some how go back to the syntax node of this symbol?

In the below code lets say I have a handle on the “param” Identifier in the syntax tree from the param = "TEST", I swap over to the semantic model to determine the OriginalDefinition of param which takes me to the string param in the method declaration. I now want to swap back to the syntax tree and goto the original definition node.

I was able to do this with what I would consider a hack var token = tree.Root.FindToken(origNode.Locations[0].SourceSpan.Start).Parent;

Is there a better way to do this? Perhaps something similar to the GetSemanticInfo() but for the Syntax tree?

private void DoSomething(string param)
{
  param = "TEST";
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:08:14+00:00Added an answer on June 3, 2026 at 1:08 am

    There isn’t anything better in the current CTP, but this is feedback that we have heard, and we have a plan to address it in the future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to implement compiler (lexical, syntax and semantic analyzers). I have already implemented
I have this form where a user can input tags (tag_list input) like Graphic
We have a class whose semantic behaviour is like the following :- struct Sample
Ugh. Word is notorious for its bloated, convoluted, non-standards-compliant, non-semantic HTML. Unfortunately, I have
Have a look at this picture alt text http://www.abbeylegal.com/downloads/2009-04-01/web%20part%20top%20line.jpg Does anyone know what css
I am asking if it is necessary or useful to have semantic variances in
Suppose I am editing a buffer containing C code. I have started semantic with
Given a MethodDeclarationSyntax object how can I find out the method's declaring type? My
How can i achieve this layout alt text http://img195.imageshack.us/img195/1870/screenshot20091212at151.jpg (now its done with tables)
We have a link like http://stackoverflow.com/questions/9281910/h1-and-semantic-html5 How do I get the part, which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.