C# 클래스 MonoDevelop.FSharp.Resolver.NewFSharpExpressionFinder

Supports getting the expression including context from the cursor position.
상속: IExpressionFinder
파일 보기 프로젝트 열기: vasili/FSharpBinding 1 사용 예제들

공개 메소드들

메소드 설명
FilterComments ( string text, int &offset ) : string
FindAttributeName ( MonoDevelop editor, ICompilationUnit unit, string fileName ) : string
FindExactContextForAsCompletion ( MonoDevelop editor, ICompilationUnit unit, string fileName, IType callingType ) : MonoDevelop.Projects.Dom.ExpressionContext
FindExactContextForNewCompletion ( MonoDevelop editor, ICompilationUnit unit, string fileName, IType callingType ) : MonoDevelop.Projects.Dom.ExpressionContext
FindExactContextForNewCompletion ( MonoDevelop editor, ICompilationUnit unit, string fileName, IType callingType, int cursorPos ) : MonoDevelop.Projects.Dom.ExpressionContext
FindExactContextForObjectInitializer ( MonoDevelop editor, ICompilationUnit unit, string fileName, IType callingType ) : MonoDevelop.Projects.Dom.ExpressionContext
FindExpression ( string text, int offset ) : MonoDevelop.Projects.Dom.ExpressionResult
FindFullExpression ( string text, int offset ) : MonoDevelop.Projects.Dom.ExpressionResult
FindFullExpressionInMethod ( string text, int offset ) : MonoDevelop.Projects.Dom.ExpressionResult

Like FindFullExpression, but text is a code snippet inside a method body.

FindFullExpressionInTypeDeclaration ( string text, int offset ) : MonoDevelop.Projects.Dom.ExpressionResult

Like FindFullExpression, but text is a code snippet inside a type declaration.

IsExpression ( string expr ) : bool
NewFSharpExpressionFinder ( MonoDevelop.Projects.Dom.Parser.ProjectDom projectContent ) : System
RemoveLastPart ( string expression ) : string

비공개 메소드들

메소드 설명
ApplyToken ( ICSharpCode.NRefactory.Parser.Token token ) : void
FindFullExpression ( string text, int offset, Frame initialFrame ) : MonoDevelop.Projects.Dom.ExpressionResult
Init ( string text, int offset ) : void
LocationToOffset ( Location location ) : int
MakeResult ( string text, int startOffset, int endOffset, IEnumerable contexts ) : MonoDevelop.Projects.Dom.ExpressionResult
OffsetToLocation ( int offset ) : Location
ReadChar ( StringBuilder outText, string text, int &curOffset ) : bool
ReadMultiLineComment ( string text, int &curOffset, int &offset ) : bool
ReadString ( StringBuilder outText, string text, int &curOffset ) : bool
ReadToEOL ( string text, int &curOffset, int &offset ) : bool
ReadVerbatimString ( StringBuilder outText, string text, int &curOffset ) : bool
Strip ( string text ) : string
TrackCurrentContext ( ICSharpCode.NRefactory.Parser.Token token ) : void
TrackCurrentFrameAndExpression ( ICSharpCode.NRefactory.Parser.Token token ) : void

메소드 상세

FilterComments() 공개 메소드

public FilterComments ( string text, int &offset ) : string
text string
offset int
리턴 string

FindAttributeName() 공개 정적인 메소드

public static FindAttributeName ( MonoDevelop editor, ICompilationUnit unit, string fileName ) : string
editor MonoDevelop
unit ICompilationUnit
fileName string
리턴 string

FindExactContextForAsCompletion() 공개 메소드

public FindExactContextForAsCompletion ( MonoDevelop editor, ICompilationUnit unit, string fileName, IType callingType ) : MonoDevelop.Projects.Dom.ExpressionContext
editor MonoDevelop
unit ICompilationUnit
fileName string
callingType IType
리턴 MonoDevelop.Projects.Dom.ExpressionContext

FindExactContextForNewCompletion() 공개 메소드

public FindExactContextForNewCompletion ( MonoDevelop editor, ICompilationUnit unit, string fileName, IType callingType ) : MonoDevelop.Projects.Dom.ExpressionContext
editor MonoDevelop
unit ICompilationUnit
fileName string
callingType IType
리턴 MonoDevelop.Projects.Dom.ExpressionContext

FindExactContextForNewCompletion() 공개 메소드

public FindExactContextForNewCompletion ( MonoDevelop editor, ICompilationUnit unit, string fileName, IType callingType, int cursorPos ) : MonoDevelop.Projects.Dom.ExpressionContext
editor MonoDevelop
unit ICompilationUnit
fileName string
callingType IType
cursorPos int
리턴 MonoDevelop.Projects.Dom.ExpressionContext

FindExactContextForObjectInitializer() 공개 메소드

public FindExactContextForObjectInitializer ( MonoDevelop editor, ICompilationUnit unit, string fileName, IType callingType ) : MonoDevelop.Projects.Dom.ExpressionContext
editor MonoDevelop
unit ICompilationUnit
fileName string
callingType IType
리턴 MonoDevelop.Projects.Dom.ExpressionContext

FindExpression() 공개 메소드

public FindExpression ( string text, int offset ) : MonoDevelop.Projects.Dom.ExpressionResult
text string
offset int
리턴 MonoDevelop.Projects.Dom.ExpressionResult

FindFullExpression() 공개 메소드

public FindFullExpression ( string text, int offset ) : MonoDevelop.Projects.Dom.ExpressionResult
text string
offset int
리턴 MonoDevelop.Projects.Dom.ExpressionResult

FindFullExpressionInMethod() 공개 메소드

Like FindFullExpression, but text is a code snippet inside a method body.
public FindFullExpressionInMethod ( string text, int offset ) : MonoDevelop.Projects.Dom.ExpressionResult
text string
offset int
리턴 MonoDevelop.Projects.Dom.ExpressionResult

FindFullExpressionInTypeDeclaration() 공개 메소드

Like FindFullExpression, but text is a code snippet inside a type declaration.
public FindFullExpressionInTypeDeclaration ( string text, int offset ) : MonoDevelop.Projects.Dom.ExpressionResult
text string
offset int
리턴 MonoDevelop.Projects.Dom.ExpressionResult

IsExpression() 공개 메소드

public IsExpression ( string expr ) : bool
expr string
리턴 bool

NewFSharpExpressionFinder() 공개 메소드

public NewFSharpExpressionFinder ( MonoDevelop.Projects.Dom.Parser.ProjectDom projectContent ) : System
projectContent MonoDevelop.Projects.Dom.Parser.ProjectDom
리턴 System

RemoveLastPart() 공개 메소드

public RemoveLastPart ( string expression ) : string
expression string
리턴 string