mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-13 03:37:31 +08:00
More tests for grammar
This commit is contained in:
@@ -245,6 +245,9 @@ export default class Grammar {
|
||||
case SymbolEntity:
|
||||
result = this.symbolEntity
|
||||
break
|
||||
case UnknownKeysEntity:
|
||||
result = this.unknownKeysEntity
|
||||
break
|
||||
case UserDefinedPinEntity:
|
||||
result = this.userDefinedPinEntity
|
||||
break
|
||||
@@ -566,17 +569,19 @@ export default class Grammar {
|
||||
this.null,
|
||||
this.number,
|
||||
this.string,
|
||||
this.fullReferenceEntity,
|
||||
this.localizedTextEntity,
|
||||
this.invariantTextEntity,
|
||||
this.formatTextEntity,
|
||||
this.pinReferenceEntity,
|
||||
this.vectorEntity,
|
||||
this.rotatorEntity,
|
||||
this.linearColorEntity,
|
||||
this.vector2DEntity,
|
||||
this.objectReferenceEntity,
|
||||
this.unknownKeysEntity,
|
||||
this.symbol,
|
||||
this.symbolEntity,
|
||||
this.grammarFor(undefined, [PinReferenceEntity]),
|
||||
this.grammarFor(undefined, [new UnionType(Number, String, SymbolEntity)]),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ export default class Serializer {
|
||||
}
|
||||
if (trailingSeparator && result.length) {
|
||||
// append separator at the end if asked and there was printed content
|
||||
result += this.attributeSeparator
|
||||
result += attributeSeparator
|
||||
}
|
||||
return wrap(result, entity.constructor)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user