type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
on(type: 'tileloadstart', listener: (evt: TileSourceEvent) => void): EventsKey; | 256hz/DefinitelyTyped | types/ol/source/IIIF.d.ts | TypeScript |
MethodDeclaration |
once(type: 'tileloadstart', listener: (evt: TileSourceEvent) => void): EventsKey; | 256hz/DefinitelyTyped | types/ol/source/IIIF.d.ts | TypeScript |
MethodDeclaration |
un(type: 'tileloadstart', listener: (evt: TileSourceEvent) => void): void; | 256hz/DefinitelyTyped | types/ol/source/IIIF.d.ts | TypeScript |
ArrowFunction |
async (error: any, event: any) => {
if (error) {
return
}
try {
await this.metadataNFTRepository.updateMetadataNftAttributes(
event.returnValues._cardId,
{
cardLevel: 1,
},
)
} catch (error: any) {}
} | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
ArrowFunction |
(attr) => ({
trait_type: attr.type,
value: this.isNumeric(attr.value)
? parseInt(attr.value.toString())
: attr.value,
}) | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
MethodDeclaration |
async upgradeTokenEventListner(): Promise<void> {
this.cardContractWs.events.UpgradeToken(async (error: any, event: any) => {
if (error) {
return
}
try {
await this.metadataNFTRepository.updateMetadataNftAttributes(
event.returnValues._cardId,
{
car... | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
MethodDeclaration |
isNumeric(num: any): boolean {
return !isNaN(num)
} | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
MethodDeclaration |
async getOpenSeaMetadataInternal(
nftId: number,
): Promise<IOpenSeaMetadata | unknown> {
try {
const metadataNFT = await this.metadataNFTRepository.findMetadataNFT({
nftId,
})
if (!metadataNFT) {
return {}
}
const { factionNumber, name, image, description, attr... | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
MethodDeclaration |
async getOpenSeaMetadata(nftId: number): Promise<IOpenSeaMetadata | unknown> {
try {
const url = await this.cardContract.methods.tokenURI(nftId).call()
if (!url) {
return {}
}
const openSeaMetadata = await this.getOpenSeaMetadataInternal(nftId)
return openSeaMetadata
} cat... | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
MethodDeclaration |
async findMetadataNFT(nftId: number): Promise<CardMetadataNFT | unknown> {
try {
const metadataNFT = await this.metadataNFTRepository.findMetadataNFT({
nftId,
})
if (!metadataNFT) {
return {}
}
return metadataNFT
} catch (error: any) {
throw new InternalServe... | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
MethodDeclaration |
async createMetadataNFT(
secret: string,
createDto: CreateMetadataNFTDto,
): Promise<CardMetadataNFT> {
if (secret != this.configService.get('SECRET')) {
throw new UnauthorizedException()
}
try {
const obj = await this.metadataNFTRepository.createMetadataNFT(createDto)
return ob... | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
MethodDeclaration |
private isEmptyMetadata(data: IMetadataNFT, check: string[]): boolean {
for (const key in data) {
if (check.includes(data[key]) && data[key].length <= 0) {
return true
}
}
return false
} | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
MethodDeclaration |
async bulkCreateMetadataNFT(
secret: string,
file: Express.Multer.File,
): Promise<any> {
if (!file) {
throw new BadRequestException()
}
if (secret != this.configService.get('SECRET')) {
throw new UnauthorizedException()
}
const nameArr = file.originalname.split('.')
const... | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
MethodDeclaration |
async updateMetadataNft(
secret: string,
updateDto: UpdateMetadataNFTDto,
): Promise<CardMetadataNFT> {
if (secret != this.configService.get('SECRET')) {
throw new UnauthorizedException()
}
try {
const { nftId, factionNumber, name, image, description, add, remove } =
updateDto... | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
MethodDeclaration |
async updateMetadataNftAttributes(
nftId: number,
secret: string,
updateAttributeDto: UpdateMetadataNFTAttributesDto,
): Promise<CardMetadataNFT> {
if (secret != this.configService.get('SECRET')) {
throw new UnauthorizedException()
}
try {
return this.metadataNFTRepository.updateM... | shahid-2021/Medal | src/card/card.service.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'app-knowledge-form',
templateUrl: './knowledge-form.component.html',
styleUrls: ['./knowledge-form.component.scss']
})
export class KnowledgeFormComponent implements OnInit, AfterViewInit {
@ViewChild('knowledgeInput') knowledgeInput: ElementRef;
@Input() knowledgeForm: FormGroup;
... | fabnumdef/chatbot-front | src/app/modules/intent/create-edit-intent/intent-form/knowledge-form/knowledge-form.component.ts | TypeScript |
MethodDeclaration |
ngAfterViewInit(): void {
if (this.knowledgeForm && this.knowledgeForm.get('question') && this.knowledgeForm.get('question').value === null) {
this.knowledgeInput.nativeElement.focus();
}
} | fabnumdef/chatbot-front | src/app/modules/intent/create-edit-intent/intent-form/knowledge-form/knowledge-form.component.ts | TypeScript |
MethodDeclaration |
delete() {
this.deleteKnowledge.emit(true);
} | fabnumdef/chatbot-front | src/app/modules/intent/create-edit-intent/intent-form/knowledge-form/knowledge-form.component.ts | TypeScript |
ArrowFunction |
(msg: Message) => {
console.log(`[${this.subject}/${this.queueGroupName}][${formatDateTime(Date())}] Message received!`);
const parsedData = this.parseMessage(msg);
this.onMessage(parsedData, msg);
} | guligon90/poc-nats-healthcheck | src/nats/listeners/base-listener.ts | TypeScript |
ClassDeclaration |
abstract class BaseListener<T extends BaseEvent> {
abstract subject: T['subject'];
abstract queueGroupName: string;
abstract onMessage(data: T['data'], msg: Message): void;
private client: Stan;
protected ackWait: number = (subAckWait || 5.0) * 1e3;
constructor(client: Stan) {
this.client = client;
... | guligon90/poc-nats-healthcheck | src/nats/listeners/base-listener.ts | TypeScript |
MethodDeclaration |
abstract onMessage(data: T['data'], msg: Message): void; | guligon90/poc-nats-healthcheck | src/nats/listeners/base-listener.ts | TypeScript |
MethodDeclaration |
subscriptionOptions(): SubscriptionOptions {
// Option chaining object for the subscriber
return this.client.subscriptionOptions()
.setDeliverAllAvailable()
.setManualAckMode(true) // Forces the subscriber to perform manual acknowledgment to NATS
.setAckWait(this.ackWait) // Retains event his... | guligon90/poc-nats-healthcheck | src/nats/listeners/base-listener.ts | TypeScript |
MethodDeclaration |
listen(): void {
const subscription = this.client.subscribe(
this.subject,
this.queueGroupName,
this.subscriptionOptions()
);
subscription.on('message', (msg: Message) => {
console.log(`[${this.subject}/${this.queueGroupName}][${formatDateTime(Date())}] Message received!`);
... | guligon90/poc-nats-healthcheck | src/nats/listeners/base-listener.ts | TypeScript |
MethodDeclaration |
parseMessage(msg: Message): T['data'] {
const data = msg.getData();
return typeof data === 'string'
? JSON.parse(data) // Parses string to JSON
: JSON.parse(data.toString('utf8')); // Parses Buffer to JSON
} | guligon90/poc-nats-healthcheck | src/nats/listeners/base-listener.ts | TypeScript |
ClassDeclaration |
export class ProfilesConfirm extends CLSTask {
constructor() {
super();
this.name = "profiles:confirm";
this.description = "Confirm that profiles still exist in the source";
this.frequency = 1000 * 30;
this.queue = "profiles";
this.inputs = {};
}
async runWithinTransaction() {
const ... | vklimontovich/grouparoo | core/src/tasks/profile/confirm.ts | TypeScript |
MethodDeclaration |
async runWithinTransaction() {
const limit: number = config.batchSize.imports;
const confirmDays = parseInt(
(await plugin.readSetting("core", "confirm-profiles-days")).value
);
let count = 0;
const schedules = await Schedule.findAll({
where: { confirmProfiles: true },
include: ... | vklimontovich/grouparoo | core/src/tasks/profile/confirm.ts | TypeScript |
ArrowFunction |
t => t.amount | RyanHow/ebudget | src/modals/add-edit-category-simple-weekly/add-edit-category-simple-weekly.ts | TypeScript |
ArrowFunction |
tt => tt.length === 0 ? new Big(0) : tt.reduce((a, b) => a.plus(b)) | RyanHow/ebudget | src/modals/add-edit-category-simple-weekly/add-edit-category-simple-weekly.ts | TypeScript |
ArrowFunction |
(a, b) => a.plus(b) | RyanHow/ebudget | src/modals/add-edit-category-simple-weekly/add-edit-category-simple-weekly.ts | TypeScript |
ClassDeclaration |
@Component({
templateUrl: 'add-edit-category-simple-weekly.html'
})
export class AddEditCategorySimpleWeeklyModal {
budget: Db;
category: Category;
transaction: InitCategorySimpleWeeklyTransaction;
balance: any;
weeklyAmount: any;
balanceDate: string;
constructor(public viewCtrl: ViewController, pr... | RyanHow/ebudget | src/modals/add-edit-category-simple-weekly/add-edit-category-simple-weekly.ts | TypeScript |
MethodDeclaration |
submit(event: Event) {
event.preventDefault();
// TODO: Get the sum of transactions with date of TODAY
// Subtract from the balance here
this.transaction.balanceDate = Utils.toYYYYMMDDFromIonic(this.balanceDate);
let todaysTotal = this.budget.transactionProcessor.table(Transaction).chain()
... | RyanHow/ebudget | src/modals/add-edit-category-simple-weekly/add-edit-category-simple-weekly.ts | TypeScript |
MethodDeclaration |
cancel() {
this.viewCtrl.dismiss();
} | RyanHow/ebudget | src/modals/add-edit-category-simple-weekly/add-edit-category-simple-weekly.ts | TypeScript |
ClassDeclaration | /**
* A mock implementation of goog.ui.ActivityMonitor for unit testing. Clients
* of this class should override goog.now to return a synthetic time from
* the unit test.
* @extends {goog.ui.ActivityMonitor}
* @final
*/
class MockActivityMonitor extends __MockActivityMonitor {} | DavidANeil/DefinitelyTyped | types/google-closure-library/closure/goog/ui/mockactivitymonitor.d.ts | TypeScript |
ClassDeclaration |
abstract class __MockActivityMonitor extends goog.ui.__ActivityMonitor {
/**
*/
constructor();
/**
* Tracks whether an event has been fired. Used by simulateEvent.
* @type {boolean}
* @private
*/
private eventFired_: boolean;
/**
... | DavidANeil/DefinitelyTyped | types/google-closure-library/closure/goog/ui/mockactivitymonitor.d.ts | TypeScript |
MethodDeclaration | /**
* Simulates an event that updates the user to being non-idle.
* @param {goog.events.EventType=} opt_type The type of event that made the user
* not idle. If not specified, defaults to MOUSEMOVE.
*/
simulateEvent(opt_type?: goog.events.EventType): void; | DavidANeil/DefinitelyTyped | types/google-closure-library/closure/goog/ui/mockactivitymonitor.d.ts | TypeScript |
ArrowFunction |
(props: Props) => {
const {gameMode} = props;
if (gameMode !== 'Tractor') {
return (
<div className="pending-friends">
{gameMode.FindingFriends.friends.map((friend, idx) => {
if (friend.player_id !== null) {
return null;
}
if (!friend.card) {
... | katexyu/shengji | frontend/src/Friends.tsx | TypeScript |
ArrowFunction |
(friend, idx) => {
if (friend.player_id !== null) {
return null;
}
if (!friend.card) {
return null;
}
if (friend.skip === 0) {
return (
<p key={idx}>
The next person to play <InlineCard card={friend.car... | katexyu/shengji | frontend/src/Friends.tsx | TypeScript |
TypeAliasDeclaration |
type Props = {gameMode: IGameMode}; | katexyu/shengji | frontend/src/Friends.tsx | TypeScript |
FunctionDeclaration |
export function handleTypeAnnotation(a:tsModel.Annotation,rangeType:def.NodeClass){
if (a.name == 'MetaModel.declaresSubTypeOf') {//FIXME should be handled in same way as method annotations
rangeType.getAdapter(services.RAMLService).setExtendedTypeName(<string>a.arguments[0]);
}
if (a.name == 'Meta... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
FunctionDeclaration |
export function recordAnnotation(p:def.Property,a:tsModel.Annotation){
annotationHandlers[a.name](a,p);
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withFromParentKey();
f.withKey(true)
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withFromParentValue()
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withCanBeValue()
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.unmerge();
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withKeyRestriction(<string>a.arguments[0])
f.merge()
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withEnumOptions(<string[]>a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withOftenKeys(<string[]>a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.getAdapter(services.RAMLPropertyParserService).withEmbedMap()
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.getAdapter(services.RAMLPropertyParserService).withSystem(true)
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
if (a.arguments[0]!='false'&&a.arguments[0]!==false) {
f.withRequired(true)
}
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
if (a.arguments[0]!='false'&&a.arguments[0]!==false) {
f.withNoDirectParse()
}
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.addChildValueConstraint(new def.ChildValueConstraint(""+a.arguments[0],""+a.arguments[1]))
//f.withKeyRestriction(<string>a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.setDefaultVal(""+a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.setDefaultIntegerVal(a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.setDefaultBooleanVal(a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
if (a.arguments[0]=="minItems"){
f.setFacetValidator((x,f)=>{
if (x instanceof Array){
var length=(<any>Number).parseInt(""+f.value());
if (length>x.length){
return "array should... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(x,f)=>{
if (x instanceof Array){
var length=(<any>Number).parseInt(""+f.value());
if (length>x.length){
return "array should contain at least "+f.value()+" items";
}
}
return null;
... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(x,f)=>{
var validateAgainst=x+"";
var array:string[]=f;
try {
if (!array.some(x=>x == validateAgainst)) {
return "value should be one of :" + array.join(",")
}
} catch (e){
... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
x=>x == validateAgainst | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(x,f)=>{
if (x instanceof Array){
var length=(<any>Number).parseInt(""+f);
if (length<x.length){
return "array should contain not more then "+f.value()+" items";
}
}
return null;
... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(x,f)=>{
if (x instanceof Object){
var length=(<any>Number).parseInt(""+f);
if (length>Object.keys(x).length){
return "object should contain at least "+f.value()+" properties";
}
}
return... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(x,f)=>{
if (x instanceof Object){
var length=(<any>Number).parseInt(""+f);
if (length<Object.keys(x).length){
return "object should contain not more then "+f.value()+" properties";
}
}
r... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(x,f)=>{
if (f instanceof Array){
var length=_.unique(<any[]>f).length;
if (length<f.length){
return "array should contain only unique items";
}
}
return null;
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(x,f)=>{
if (typeof x=='number'||typeof x=='boolean') {
x = "" + x
}
if (typeof x=='string'){
var length=(<any>Number).parseInt(""+f);
if (length>x.length){
return "string length should b... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(x,f)=>{
if (typeof x=='number'||typeof x=='boolean') {
x = "" + x
}
if (typeof x=='string'){
var length=(<any>Number).parseInt(""+f);
if (length<x.length){
return "string length should b... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(x,f)=>{
if (typeof x=='string') {
x =parseFloat(x);
}
if (typeof x=='number'){
var length=parseFloat(f)
if (length>x){
return "value should be not less then "+length;
... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(x,f)=>{
if (typeof x=='string') {
x =parseFloat(x);
}
if (typeof x=='number'){
var length=parseFloat(f);
if (length<x){
return "value should be not more then "+length;
... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(x,f)=>{
if (typeof x=='number'||typeof x=='boolean') {
x = "" + x
}
if (typeof x=='string'){
var regExp=new RegExp(f);
if (!regExp.test(x)){
return "string should match to "+f;
... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
if (a.arguments[0]=="statusCodes"){
f.withOftenKeys(khttp.statusCodes.filter(statusCode => statusCode.code.indexOf("x") < 0).map(x=>x.code))
f.setValueDocProvider((name:string)=>{
var s= _.find(khttp.statusCodes,x=>x.code==name);
... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
statusCode => statusCode.code.indexOf("x") < 0 | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
x=>x.code | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(name:string)=>{
var s= _.find(khttp.statusCodes,x=>x.code==name);
if (s){
return (name+":"+s.description);
}
return null;
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
x=>x.code==name | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
x=>{
if (x.property()) {
var c = (<def.Property>x.property()).getChildValueConstraints();
if (_.find(c, x=> {
return x.name == "location" && x.value == "Params.ParameterLocation.HEADERS"
})) {
... | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
x=> {
return x.name == "location" && x.value == "Params.ParameterLocation.HEADERS"
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
x=>x.header | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(name:string)=>{
var s= _.find(khttp.headers,x=>x.header==name);
if (s){
return (name+":"+s.description);
}
return null;
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
x=>x.header==name | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(name:string)=>{
var s= _.find(khttp.methods,x=>x.method==name.toUpperCase());
if (s){
return (name+":"+s.description);
}
return null;
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
x=>x.method==name.toUpperCase() | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withContextRequirement(""+a.arguments[0],""+a.arguments[1])
//f.withKeyRestriction(<string>a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withMultiValue(true);
//f.withKeyRestriction(<string>a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
//f.withKeyRestriction(<string>a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withNewInstanceName(""+a.arguments[0])
//f.withKeyRestriction(<string>a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withThisPropertyDeclaresFields();
//f.withKeyRestriction(<string>a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
//f.withReferenceParameters();
f.withDescribes(<string>a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withAllowNull()
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
//f.withReferenceParameters();
f.withDescriminating(true)
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withDescription(""+a.arguments[0])
//f.withReferenceParameters();
//f.withDescriminating(true)
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withInherited(true);
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withSelfNode();
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.getAdapter(services.RAMLPropertyService).withPropertyGrammarType(""+a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.withInheritedContextValue(""+a.arguments[0])
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.setCanBeDuplicator()
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.getAdapter(services.RAMLPropertyService).setExample(true)
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.getAdapter(services.RAMLPropertyService).setTypeExpression(true)
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
if(a.arguments.length==0){
f.getAdapter(services.RAMLPropertyDocumentationService).setHidden(true);
}
else {
f.getAdapter(services.RAMLPropertyDocumentationService).setHidden(<boolean>a.arguments[0]);
}
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.getAdapter(services.RAMLPropertyDocumentationService).setDocTableName(""+a.arguments[0]);
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.getAdapter(services.RAMLPropertyDocumentationService).setMarkdownDescription(""+a.arguments[0]);
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
ArrowFunction |
(a:tsModel.Annotation,f:def.Property)=>{
f.getAdapter(services.RAMLPropertyDocumentationService).setValueDescription(a.arguments[0] != null ? (""+a.arguments[0]):null);
} | petrochenko-pavel-a/raml-definition-system-vocabs | src/annotationHandlers.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.