XSharp.LanguageService.XSharpLanguageService.ParseSource C# (CSharp) Method

ParseSource() public method

public ParseSource ( Microsoft.VisualStudio.Package.ParseRequest req ) : Microsoft.VisualStudio.Package.AuthoringScope
req Microsoft.VisualStudio.Package.ParseRequest
return Microsoft.VisualStudio.Package.AuthoringScope
        public override AuthoringScope ParseSource(ParseRequest req)
        {
            XSharpAuthoringScope scope = new XSharpAuthoringScope();
            if (req.Reason == ParseReason.Check ||
                req.Reason == ParseReason.None)
            {
                // Parse the entire source as given in req.Text. Store results in the XSharpAuthoringScope object.
            }
            else if (req.Reason == ParseReason.DisplayMemberList)
            {
                // Parse the line specified in req.Line for the two tokens just before req.Col to get the identifier and the member connector symbol. 
                // Find members of the identifer in the parse tree and store the list of members in the Declarations class.
            }
            else if (req.Reason == ParseReason.MethodTip)
            {
                // Parse the line specified in req.Line for the token just before req.Col to obtain the name of the method. 
                // Find all method signatures with the same name in the existing parse tree and store the list of signatures in the Methods class.
            }
            // continue for the rest of the supported ParseReason values.
            return scope;
        }
    }