C# Class XSharp.CodeDom.XSharpTreeDiscover

Inheritance: XSharpBaseListener
Show file Open project: X-Sharp/XSharpPublic Class Usage Examples

Public Methods

Method Description
BuildUnEscapedString ( string text ) : string

UnEscape the string, converting the Escape sequence into it's "real" form https://en.wikipedia.org/wiki/Escape_sequences_in_C

EnterClassVarList ( [ context ) : void
EnterClass_ ( XSharpParser context ) : void
EnterClassvarModifiers ( [ context ) : void
EnterClsctor ( [ context ) : void
EnterClsdtor ( [ context ) : void
EnterEvent_ ( [ context ) : void
EnterExpressionStmt ( [ context ) : void
EnterLocalvar ( [ context ) : void
EnterMethod ( [ context ) : void
EnterNamespace_ ( XSharpParser context ) : void
EnterOperator_ ( [ context ) : void
EnterProperty ( [ context ) : void
EnterReturnStmt ( [ context ) : void
EnterUsing_ ( [ context ) : void
ExitMethod ( [ context ) : void
ExitNamespace_ ( [ context ) : void
XSharpTreeDiscover ( ) : LanguageService.CodeAnalysis.XSharp.SyntaxParser

Private Methods

Method Description
BuildDataType ( XSharpParser context ) : CodeTypeReference
BuildExpression ( XSharpParser expression ) : System.CodeDom.CodeExpression
BuildExpression ( XSharpParser expression, bool right ) : System.CodeDom.CodeExpression
BuildLiteralValue ( XSharpParser context ) : System.CodeDom.CodeExpression
BuildLocalVar ( XSharpParser context, CodeTypeReference localType ) : CodeVariableDeclarationStatement
BuildName ( XSharpParser context ) : CodeTypeReference
BuildNativeType ( String nativeType ) : CodeTypeReference
BuildNativeType ( XSharpParser nativeType ) : CodeTypeReference
BuildSimpleName ( XSharpParser simpleName ) : CodeTypeReference
BuildXBaseType ( XSharpParser xbaseType ) : CodeTypeReference
ContextToClassModifiers ( XSharpParser modifiers ) : TypeAttributes
ContextToConstructorModifiers ( XSharpParser modifiers ) : MemberAttributes
ContextToEventModifiers ( XSharpParser modifiers ) : MemberAttributes
ContextToMethodModifiers ( XSharpParser modifiers ) : MemberAttributes
CreateSnippetMember ( ParserRuleContext context ) : CodeSnippetTypeMember
FillCodeDomDesignerData ( CodeObject newElement, int line, int col ) : void
FillCodeSource ( CodeObject element, IToken endOfFirstLine, ParserRuleContext context ) : void
GetNumericValue ( XSharpParser context ) : object

Get a LiteralValueContext containing a BIN_CONST, INT_CONST, HEX_CONST, or a REAL_CONST as a String, and convert it to the "real" value, with the corresponding Type.

GetParametersList ( XSharpParser paramList ) : CodeParameterDeclarationExpressionCollection
IsEmpty ( CodeNamespace nspace ) : bool
decodeMemberAttributes ( IList tokens ) : MemberAttributes

Method Details

BuildUnEscapedString() public method

UnEscape the string, converting the Escape sequence into it's "real" form https://en.wikipedia.org/wiki/Escape_sequences_in_C
public BuildUnEscapedString ( string text ) : string
text string
return string

EnterClassVarList() public method

public EnterClassVarList ( [ context ) : void
context [
return void

EnterClass_() public method

public EnterClass_ ( XSharpParser context ) : void
context XSharpParser
return void

EnterClassvarModifiers() public method

public EnterClassvarModifiers ( [ context ) : void
context [
return void

EnterClsctor() public method

public EnterClsctor ( [ context ) : void
context [
return void

EnterClsdtor() public method

public EnterClsdtor ( [ context ) : void
context [
return void

EnterEvent_() public method

public EnterEvent_ ( [ context ) : void
context [
return void

EnterExpressionStmt() public method

public EnterExpressionStmt ( [ context ) : void
context [
return void

EnterLocalvar() public method

public EnterLocalvar ( [ context ) : void
context [
return void

EnterMethod() public method

public EnterMethod ( [ context ) : void
context [
return void

EnterNamespace_() public method

public EnterNamespace_ ( XSharpParser context ) : void
context XSharpParser
return void

EnterOperator_() public method

public EnterOperator_ ( [ context ) : void
context [
return void

EnterProperty() public method

public EnterProperty ( [ context ) : void
context [
return void

EnterReturnStmt() public method

public EnterReturnStmt ( [ context ) : void
context [
return void

EnterUsing_() public method

public EnterUsing_ ( [ context ) : void
context [
return void

ExitMethod() public method

public ExitMethod ( [ context ) : void
context [
return void

ExitNamespace_() public method

public ExitNamespace_ ( [ context ) : void
context [
return void

XSharpTreeDiscover() public method

public XSharpTreeDiscover ( ) : LanguageService.CodeAnalysis.XSharp.SyntaxParser
return LanguageService.CodeAnalysis.XSharp.SyntaxParser