MCPcopy Create free account

hub / github.com/nodeca/js-yaml / functions

Functions242 in github.com/nodeca/js-yaml

↓ 27 callersFunctionload
* Parses `string` as a single YAML document. Throws {@link YAMLException} on * error. This function does not understand multi-document or empty sourc
src/load.ts:105
↓ 21 callersFunctiondump
* Serializes JS object as a YAML document. By default it can dump every * supported YAML type, so it throws an exception if you try to dump regexps o
src/dump.ts:103
↓ 20 callersFunctiondefineScalarTag
* Create a normalized scalar tag definition. * * @category Tags
src/tag.ts:204
↓ 16 callersFunctionthrowError
(state: ParserState, message: string)
src/parser/parser.ts:249
↓ 13 callersMethodtoString
* Returns the formatted error, omitting the source snippet in compact mode.
src/common/exception.ts:55
↓ 11 callersFunctionisWsOrEol
(c: number)
src/parser/parser.ts:261
↓ 11 callersMethodwithTags
* Creates a new schema with the specified tags added. If a tag already * exists, it is replaced by the specified tag. * * @example * *
src/schema.ts:246
↓ 9 callersFunctionisEol
(c: number)
src/parser/parser.ts:253
↓ 9 callersFunctionparseEvents
* Parses YAML into a flat event stream referencing source text by offsets. * * @category Events
src/parser/parser.ts:1460
↓ 9 callersFunctionskipSeparationSpace
(state: ParserState, allowComments: boolean)
src/parser/parser.ts:333
↓ 8 callersFunctionloadAll
( input: string, iteratorOrOptions?: LoadAllIterator | LoadOptions | null, options?: LoadOptions )
src/load.ts:56
↓ 7 callersFunctionthrowError
(state: ConstructorState, message: string)
src/parser/constructor.ts:143
↓ 6 callersFunctionaddScalarEvent
( state: ParserState, valueStart: number, valueEnd: number, anchorStart: number, anchorEnd: number,
src/parser/parser.ts:163
↓ 6 callersFunctiondefineMappingTag
* Create a normalized mapping tag definition. * * @category Tags
src/tag.ts:246
↓ 6 callersFunctionisFlowIndicator
(c: number)
src/parser/parser.ts:269
↓ 6 callersFunctionisWhiteSpace
(c: number)
src/parser/parser.ts:257
↓ 5 callersFunctionisWsOrEolOrEnd
(c: number)
src/parser/parser.ts:265
↓ 5 callersFunctiontagNameFull
(rawTag: string, tagHandlers?: Readonly<Record<string, string>>)
src/common/tagname.ts:13
↓ 5 callersFunctionvisit
* Walk every node in the documents, calling {@link Visitor} once per * node (pre-order). * * @category AST
src/ast/visit.ts:82
↓ 5 callersFunctionwriteNode
(state: PresenterState, level: number, node: Node, parent: Readonly<Node> | null, ctx: NodeContext)
src/ast/presenter.ts:364
↓ 4 callersFunctionaddEmptyScalarEvent
(state: ParserState)
src/parser/parser.ts:207
↓ 4 callersFunctionaddPopEvent
(state: ParserState)
src/parser/parser.ts:203
↓ 4 callersFunctiondefineSequenceTag
* Create a normalized sequence tag definition. * * @category Tags
src/tag.ts:223
↓ 4 callersFunctioneventsToAst
* Builds an AST from parser events * * @category AST
src/ast/from_events.ts:141
↓ 4 callersFunctiongetScalarValue
* Decodes the scalar referenced by event offsets in `input`. * * @category Events
src/parser/parser_scalar.ts:285
↓ 4 callersFunctionhasBit
(mask: number, bit: number)
src/ast/styler_defaults.ts:4
↓ 4 callersFunctionparseNode
( state: ParserState, parentIndent: number, nodeContext: NodeContext, allowToSeek: boolean, allowCom
src/parser/parser.ts:1171
↓ 4 callersFunctionpresent
* Build YAML from AST. * * @category AST
src/ast/presenter.ts:490
↓ 4 callersFunctionsnapshotState
(state: ParserState)
src/parser/parser.ts:229
↓ 4 callersFunctiontagNameShort
(fullTag: string)
src/common/tagname.ts:25
↓ 4 callersFunctiontestDocumentSeparator
(state: ParserState, position = state.position)
src/parser/parser.ts:369
↓ 4 callersMethodthrowAt
* Builds a YAMLException with a source snippet and throws it. `source` is * the raw input text; `position` is an offset into it.
src/common/exception.ts:63
↓ 3 callersFunctionbuild
(state: FromJsState, object: unknown)
src/ast/from_js.ts:93
↓ 3 callersFunctionconsumeLineBreak
(state: ParserState)
src/parser/parser.ts:317
↓ 3 callersFunctionfoldedBreaks
(count: number)
src/parser/parser_scalar.ts:95
↓ 3 callersFunctionisPlainObject
(data: unknown)
src/common/object.ts:1
↓ 3 callersFunctionjsToAst
* Convert JS object to AST. A JS value is one YAML document. An unrepresentable * root becomes an empty document, which the presenter renders as an e
src/ast/from_js.ts:173
↓ 3 callersFunctionnormalizeDumpMarkers
(yaml)
test/spec/spec.test.mjs:178
↓ 3 callersMethodresolveImplicitScalarTag
@internal
src/schema.ts:221
↓ 3 callersFunctionrestoreState
(state: ParserState, snapshot: ParserSnapshot)
src/parser/parser.ts:240
↓ 3 callersFunctionskipFoldedBreaks
(input: string, position: number, end: number)
src/parser/parser_scalar.ts:70
↓ 3 callersFunctiontestDocumentBoundary
(state: ParserState)
src/parser/parser.ts:390
↓ 3 callersFunctionunescapeFixtureText
(text)
test/spec/spec.test.mjs:47
↓ 2 callersFunction_preferredQuotedStyle
(layout: ScalarLayout)
src/ast/styler_defaults.ts:27
↓ 2 callersFunctionaddMappingEvent
( state: ParserState, start: number, anchorStart: number, anchorEnd: number, tagStart: number, tag
src/parser/parser.ts:131
↓ 2 callersFunctionaddSequenceEvent
( state: ParserState, start: number, anchorStart: number, anchorEnd: number, tagStart: number, tag
src/parser/parser.ts:111
↓ 2 callersFunctionaddSignaturePermalink
(context, signature, anchor)
support/typedoc_condensed_theme/condensed_theme_plugin.mjs:77
↓ 2 callersFunctionanchorName
(state: FromEventsState, event: ScalarEvent | SequenceEvent | MappingEvent)
src/ast/from_events.ts:78
↓ 2 callersFunctionblockHeader
(string: string, shiftOfParent: number, shiftOfContent: number)
src/ast/scalar_styler.ts:322
↓ 2 callersFunctioncannotBeCompact
(state: PresenterState, node: Node, level: number)
src/ast/presenter.ts:359
↓ 2 callersFunctioncheckPrintable
(state: ParserState, start: number, end: number)
src/parser/parser.ts:419
↓ 2 callersFunctionconstructFromEvents
* Constructs JavaScript documents directly from parser events, without an * intermediate AST. * * @category Events
src/parser/constructor.ts:365
↓ 2 callersFunctiondropEndingNewline
(string: string)
src/ast/scalar_styler.ts:336
↓ 2 callersFunctionencodeFlowBreaks
(string: string, shiftOfContent: number)
src/ast/scalar_styler.ts:271
↓ 2 callersFunctionfinalizeCollection
( state: ConstructorState, position: number, tag: SequenceTagDefinition<any, any> | MappingTagDefinition
src/parser/constructor.ts:147
↓ 2 callersFunctionformatError
(exception: YAMLException, compact?: boolean)
src/common/exception.ts:5
↓ 2 callersFunctionformatRange
(input, start, end)
test/spec/spec.test.mjs:90
↓ 2 callersFunctiongenerateNextLine
(state: PresenterState, level: number)
src/ast/presenter.ts:165
↓ 2 callersFunctionindentString
(string: string, spaces: number)
src/ast/scalar_styler.ts:292
↓ 2 callersFunctionisMappingTag
(tag: AnyTag)
src/parser/constructor.ts:237
↓ 2 callersFunctionisMoreIndented
(char: string)
src/ast/scalar_styler.ts:340
↓ 2 callersFunctionlabelOf
test/core/ast/visit.test.mjs:13
↓ 2 callersFunctionloadDocuments
(input: string, options: LoadOptions = {})
src/load.ts:26
↓ 2 callersMethodlookupMappingTag
@internal
src/schema.ts:209
↓ 2 callersMethodlookupSequenceTag
@internal
src/schema.ts:197
↓ 2 callersFunctionparse
()
support/demo_template/index.mjs:34
↓ 2 callersFunctionpick
(object: T, keys: readonly K[])
src/common/object.ts:10
↓ 2 callersFunctionrawTag
(state: FromEventsState, event: ScalarEvent | SequenceEvent | MappingEvent)
src/ast/from_events.ts:72
↓ 2 callersFunctionreadFlowScalarBreak
(state: ParserState, nodeIndent: number)
src/parser/parser.ts:527
↓ 2 callersFunctionrenderWithoutSources
(item, render)
support/typedoc_condensed_theme/condensed_theme_plugin.mjs:56
↓ 2 callersFunctionsignatureItem
(context, signature, permalinkAnchor, itemClass)
support/typedoc_condensed_theme/condensed_theme_plugin.mjs:103
↓ 2 callersFunctionsignatureList
(context, declaration, items)
support/typedoc_condensed_theme/condensed_theme_plugin.mjs:126
↓ 2 callersFunctionskipByteOrderMark
(state: ParserState)
src/parser/parser.ts:382
↓ 2 callersFunctionsourceLinks
(context, item)
support/typedoc_condensed_theme/condensed_theme_plugin.mjs:44
↓ 2 callersFunctiontagHandlersFromDirectives
(directives)
test/spec/spec.test.mjs:116
↓ 1 callersFunctionactualTreeLines
(input)
test/spec/spec.test.mjs:132
↓ 1 callersFunctionaddAliasEvent
( state: ParserState, anchorStart: number, anchorEnd: number )
src/parser/parser.ts:191
↓ 1 callersFunctionaddDocumentEvent
( state: ParserState, explicitStart: boolean, explicitEnd: boolean )
src/parser/parser.ts:98
↓ 1 callersFunctionaddMappingValue
(state: ConstructorState, frame: MappingFrame, key: unknown, value: unknown, tag: AnyTag)
src/parser/constructor.ts:296
↓ 1 callersFunctionaddNode
(state: FromEventsState, node: Node)
src/ast/from_events.ts:121
↓ 1 callersFunctionaddValue
(state: ConstructorState, value: unknown, tag: AnyTag)
src/parser/constructor.ts:314
↓ 1 callersFunctionalias
test/core/ast/visit.test.mjs:9
↓ 1 callersFunctionanchorIcon
(context, anchor)
support/typedoc_condensed_theme/condensed_theme_plugin.mjs:67
↓ 1 callersFunctionassertYamlException
(fn, pattern)
test/core/pathological.test.mjs:4
↓ 1 callersFunctionbuildCollection
( state: FromEventsState, event: SequenceEvent | MappingEvent, defaultTagName: string )
src/ast/from_events.ts:102
↓ 1 callersFunctionbuildDeclarations
()
support/build-dist.mjs:22
↓ 1 callersFunctionbuildRepresentTypes
(schema: Schema)
src/ast/from_js.ts:50
↓ 1 callersFunctionbuildScalar
(state: FromEventsState, event: ScalarEvent)
src/ast/from_events.ts:84
↓ 1 callersFunctioncanStartPlainScalar
(state: ParserState, nodeContext: NodeContext)
src/parser/parser.ts:763
↓ 1 callersFunctioncanUseBlock
(layout: ScalarLayout)
src/ast/scalar_styler.ts:183
↓ 1 callersFunctioncanUsePlain
(layout: ScalarLayout)
src/ast/scalar_styler.ts:125
↓ 1 callersFunctioncanUseSingleQuoted
(layout: ScalarLayout)
src/ast/scalar_styler.ts:161
↓ 1 callersFunctioncharFromCodepoint
(c: number)
src/parser/parser_scalar.ts:42
↓ 1 callersFunctionchargeMergeWork
(state: ConstructorState)
src/parser/constructor.ts:241
↓ 1 callersFunctioncheckExports
(yaml, options)
test/core/dist.test.mjs:8
↓ 1 callersFunctioncheckName
(name)
benchmark/benchmark.mjs:80
↓ 1 callersFunctioncollect
(documents, control)
test/core/ast/visit.test.mjs:19
↓ 1 callersFunctioncollectionTagName
( state: ConstructorState, event: SequenceEvent | MappingEvent, defaultTagName: string )
src/parser/constructor.ts:221
↓ 1 callersFunctioncompileTags
(tags: readonly TagDefinition[])
src/schema.ts:58
↓ 1 callersFunctionconstructScalar
( state: ConstructorState, event: ScalarEvent )
src/parser/constructor.ts:166
next →1–100 of 242, ranked by callers