Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DedSec256 committed Apr 24, 2023
1 parent b07420e commit b7768bc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.jetbrains.rider.ideaInterop.fileTypes.fsharp.psi
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.jetbrains.rider.ideaInterop.fileTypes.common.psi.ClrLanguageStringLiteralExpression
import com.jetbrains.rider.ideaInterop.fileTypes.fsharp.lexer.FSharpTokenType
import com.jetbrains.rider.ideaInterop.fileTypes.fsharp.lexer.FSharpTokenNodeType

interface FSharpElement : PsiElement

Expand All @@ -16,7 +16,7 @@ interface FSharpStringLiteralExpression : FSharpElement, ClrLanguageStringLitera
}

interface FSharpInterpolatedStringLiteralExpressionPart : FSharpElement {
val tokenType: FSharpTokenType
val tokenType: FSharpTokenNodeType
}

interface FSharpInterpolatedStringLiteralExpression : FSharpStringLiteralExpression
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.jetbrains.rider.ideaInterop.fileTypes.fsharp.psi.impl

import com.intellij.psi.util.elementType
import com.jetbrains.rider.ideaInterop.fileTypes.fsharp.lexer.FSharpTokenType
import com.jetbrains.rider.ideaInterop.fileTypes.fsharp.lexer.FSharpTokenNodeType
import com.jetbrains.rider.ideaInterop.fileTypes.fsharp.psi.FSharpElementType
import com.jetbrains.rider.ideaInterop.fileTypes.fsharp.psi.FSharpInterpolatedStringLiteralExpressionPart

class FSharpInterpolatedStringLiteralExpressionPartImpl(type: FSharpElementType) : FSharpPsiElementBase(type),
FSharpInterpolatedStringLiteralExpressionPart {
override val tokenType: FSharpTokenType
get() = firstChild?.elementType as FSharpTokenType
override val tokenType: FSharpTokenNodeType
get() = firstChild?.elementType as FSharpTokenNodeType
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <frontend:INFORMATION>https://jetbrains.com</frontend:INFORMATION>
let <backend:INFORMATION>url</backend:INFORMATION> = "<frontend:INFORMATION>https://jetbrains.com</frontend:INFORMATION>"
let <backend:INFORMATION>url1</backend:INFORMATION> = "<frontend:INFORMATION>https://jetbrains.com</frontend:INFORMATION>"
let <backend:INFORMATION>url2</backend:INFORMATION> = <backend:INFORMATION>$</backend:INFORMATION>"<frontend:INFORMATION>https://jetbrains.com</frontend:INFORMATION>"

let <backend:INFORMATION>nonUrl</backend:INFORMATION> = "123"
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// https://jetbrains.com
let url = "https://jetbrains.com"
let url1 = "https://jetbrains.com"
let url2 = $"https://jetbrains.com"

let nonUrl = "123"

0 comments on commit b7768bc

Please sign in to comment.