class LSProtocol::Moniker

Overview

Moniker definition to match LSIF 0.5 moniker definition.

@since 3.16.0

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(identifier : String | Nil, scheme : String | Nil, unique : UniquenessLevel | Nil, kind : MonikerKind | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def identifier : String #

The identifier of the moniker. The value is opaque in LSIF however schema owners are allowed to define the structure if they want.


[View source]
def kind : MonikerKind | Nil #

The moniker kind if known.


[View source]
def scheme : String #

The scheme of the moniker. For example tsc or .Net


[View source]
def unique : UniquenessLevel #

The scope in which the moniker is unique


[View source]