Skip to content

Instantly share code, notes, and snippets.

@Aleksandyr
Created April 2, 2019 13:39
Show Gist options
  • Select an option

  • Save Aleksandyr/d386088cd45f081205cc8b3eefbd9207 to your computer and use it in GitHub Desktop.

Select an option

Save Aleksandyr/d386088cd45f081205cc8b3eefbd9207 to your computer and use it in GitHub Desktop.
/**
* Triggers per every reflection object.
* @param reflection
*/
private resolve(context, reflection) {
switch(reflection.kind) {
...
case ReflectionKind.GetSignature:
case ReflectionKind.SetSignature:
const accessorName = reflection.parent.name;
const accessorType = reflection.kind;
const accessorData = this.getCommentInfo(reflection);
this.factoryInstance.appendAccessorAttributes(
this.jsonObjectName,
reflection.parent.kind,
accessorName,
accessorType,
accessorData);
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment