Giter Site home page Giter Site logo

Unescaping f# method names about vstest HOT 4 CLOSED

nohwnd avatar nohwnd commented on September 1, 2024
Unescaping f# method names

from vstest.

Comments (4)

testplatform-bot avatar testplatform-bot commented on September 1, 2024

✅ Successfully linked to Azure Boards work item(s):

from vstest.

nohwnd avatar nohwnd commented on September 1, 2024

Spec says:
3.4 Identifiers and Keywords

Any sequence of characters that is enclosed in double-backtick marks ( ), excluding newlines,
tabs, and double-backtick pairs themselves, is treated as an identifier. Note that when an identifier is
used for the name of a types, union type case, module, or namespace, the following characters are
not allowed even inside double-backtick marks:
‘.', '+', '$', '&', '[', ']', '/', '\', '*', '"', '`'
All input files are currently assumed to be encoded as UTF-8. See the C# specification for a list of the
Unicode characters that are accepted for the Unicode character classes \Lu, \Li, \Lt, \Lm, \Lo, \Nl,
\Pc, \Mn, \Mc, and \Cf.

https://fsharp.org/specs/language-spec/4.1/[FSharpSpec-4.1-latest.pdf](https://fsharp.org/specs/language-spec/4.1/FSharpSpec-4.1-latest.pdf)

member this.`` . + - = $ & [ ] \ / * @ ' ` " % ( ) ^ `` () =
Experimenting with the chars above and few more only ` ' " \ look to be escaped for methods:

image

@Amaury how did you get @ to become @5?

from vstest.

Amaury avatar Amaury commented on September 1, 2024

Not the right Amaury... Try again 😉

from vstest.

nohwnd avatar nohwnd commented on September 1, 2024

This is not an issue, I misinterpreted what the parser is doing. We only need to handle ' correctly, which we do in #4969

from vstest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.