File tree Expand file tree Collapse file tree 5 files changed +57
-1
lines changed Expand file tree Collapse file tree 5 files changed +57
-1
lines changed Original file line number Diff line number Diff line change
1
+ #### 1.4.0.4 -
2
+ * add more entries to FSharpTokenTag
3
+ * add PrettyNaming.QuoteIdentifierIfNeeded and PrettyNaming.KeywordNames
4
+
1
5
#### 1.4.0.3 -
2
6
* integrate Microsoft/visualfsharp OOB cleanup via fsharp/fsharp
7
+ * Make Parser and Lexer private
3
8
4
9
#### 1.4.0.2 -
5
10
* #387 - types and arrays in F# attribute contructor arguments
372
377
#### 0.0.2-alpha -
373
378
* Integrate hosted FSI configuration, SimpleSourceCodeServices, cleanup to SourceCodeServices API
374
379
380
+
Original file line number Diff line number Diff line change @@ -27,6 +27,21 @@ type Range = Position * Position
27
27
module FSharpTokenTag =
28
28
let Identifier = tagOfToken ( IDENT " a" )
29
29
let String = tagOfToken ( STRING " a" )
30
+
31
+ let IDENT = tagOfToken ( IDENT " a" )
32
+ let STRING = tagOfToken ( STRING " a" )
33
+ let LPAREN = tagOfToken LPAREN
34
+ let RPAREN = tagOfToken RPAREN
35
+ let LBRACK = tagOfToken LBRACK
36
+ let RBRACK = tagOfToken RBRACK
37
+ let LBRACE = tagOfToken LBRACE
38
+ let RBRACE = tagOfToken RBRACE
39
+ let LBRACK_LESS = tagOfToken LBRACK_ LESS
40
+ let GREATER_RBRACK = tagOfToken GREATER_ RBRACK
41
+ let LESS = tagOfToken ( LESS true )
42
+ let GREATER = tagOfToken ( GREATER true )
43
+ let LBRACK_BAR = tagOfToken LBRACK_ BAR
44
+ let BAR_RBRACK = tagOfToken BAR_ RBRACK
30
45
31
46
/// This corresponds to a token categorization originally used in Visual Studio 2003.
32
47
///
Original file line number Diff line number Diff line change @@ -79,6 +79,34 @@ module FSharpTokenTag =
79
79
val Identifier : int
80
80
/// Indicates the token is a string
81
81
val String : int
82
+ /// Indicates the token is an identifier (synonym for FSharpTokenTag.Identifer)
83
+ val IDENT : int
84
+ /// Indicates the token is an string (synonym for FSharpTokenTag.String)
85
+ val STRING : int
86
+ /// Indicates the token is a `(`
87
+ val LPAREN : int
88
+ /// Indicates the token is a `)`
89
+ val RPAREN : int
90
+ /// Indicates the token is a `[`
91
+ val LBRACK : int
92
+ /// Indicates the token is a `]`
93
+ val RBRACK : int
94
+ /// Indicates the token is a `{`
95
+ val LBRACE : int
96
+ /// Indicates the token is a `}`
97
+ val RBRACE : int
98
+ /// Indicates the token is a `[<`
99
+ val LBRACK_LESS : int
100
+ /// Indicates the token is a `>]`
101
+ val GREATER_RBRACK : int
102
+ /// Indicates the token is a `<`
103
+ val LESS : int
104
+ /// Indicates the token is a `>`
105
+ val GREATER : int
106
+ /// Indicates the token is a `[|`
107
+ val LBRACK_BAR : int
108
+ /// Indicates the token is a `|]`
109
+ val BAR_RBRACK : int
82
110
83
111
/// Information about a particular token from the tokenizer
84
112
type FSharpTokenInfo =
Original file line number Diff line number Diff line change @@ -3225,6 +3225,8 @@ module PrettyNaming =
3225
3225
let IsLongIdentifierPartCharacter x = Microsoft.FSharp.Compiler.PrettyNaming.IsLongIdentifierPartCharacter x
3226
3226
let GetLongNameFromString x = Microsoft.FSharp.Compiler.PrettyNaming.SplitNamesForILPath x
3227
3227
let FormatAndOtherOverloadsString remainingOverloads = FSComp.SR.typeInfoOtherOverloads( remainingOverloads)
3228
+ let QuoteIdentifierIfNeeded id = Lexhelp.Keywords.QuoteIdentifierIfNeeded id
3229
+ let KeywordNames = Lexhelp.Keywords.keywordNames
3228
3230
3229
3231
//----------------------------------------------------------------------------
3230
3232
// Obsolete
Original file line number Diff line number Diff line change @@ -729,9 +729,14 @@ module PrettyNaming =
729
729
val IsIdentifierPartCharacter : char -> bool
730
730
val IsLongIdentifierPartCharacter : char -> bool
731
731
val GetLongNameFromString : string -> string list
732
- // Temporary workaround for no localized resources in FSharp.LanguageService.dll
732
+
733
733
val FormatAndOtherOverloadsString : int -> string
734
734
735
+ /// A utility to help determine if an identifier needs to be quoted
736
+ val QuoteIdentifierIfNeeded : string -> string
737
+
738
+ /// All the keywords in the F# langauge
739
+ val KeywordNames : string list
735
740
736
741
[<Obsolete( " This type has been renamed to FSharpMethodGroupItemParameter" ) >]
737
742
/// Renamed to FSharpMethodGroupItemParameter
You can’t perform that action at this time.
0 commit comments