Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion typings/symbols/base.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { symbolDistance } from '@/utils';
import { Comment } from './dcp';
import { SymbolYield, Containment } from './search';
import { Property } from './property';
Expand Down
13 changes: 13 additions & 0 deletions typings/symbols/define.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Declaration } from './base';
import { SearchYield } from './search';
import { Identifier } from './types';

export interface Define extends Declaration {
tag: Identifier.Define,
}

export interface DefineYield extends SearchYield {
readonly tag: Identifier.Constant,

fields: Define,
}
6 changes: 3 additions & 3 deletions typings/symbols/enum_struct.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Declaration, searchDeclaration } from './base';
import { SearchYield, SymbolYield } from './search';
import { Declaration } from './base';
import { SearchYield } from './search';
import { Function } from './function';
import { Identifier, IdentifierWeights } from './types';
import { Identifier } from './types';

export interface Field extends Declaration {
tag: Identifier.Field,
Expand Down
7 changes: 3 additions & 4 deletions typings/symbols/enumeration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { symbolDistance } from '@/utils';
import { Declaration, searchDeclaration } from './base';
import { Containment, SymbolYield, SearchYield } from './search';
import { Identifier, IdentifierWeights } from './types';
import { Declaration } from './base';
import { SearchYield } from './search';
import { Identifier } from './types';

export interface Entry extends Declaration {
/**
Expand Down
7 changes: 3 additions & 4 deletions typings/symbols/function.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { symbolDistance } from '@/utils';
import { Declaration, searchDeclaration } from './base';
import { Declaration } from './base';
import { Argument } from './argument';
import { SearchYield, SymbolYield, Containment } from './search';
import { Identifier, IdentifierWeights } from './types';
import { SearchYield } from './search';
import { Identifier } from './types';

export interface Function extends Declaration {
tag: Identifier.Function,
Expand Down
1 change: 1 addition & 0 deletions typings/symbols/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export * from './base';
export * from './argument';
export * from './constant';
export * from './define';
export * from './enumeration';
export * from './function';
export * from './method_map';
Expand Down
6 changes: 3 additions & 3 deletions typings/symbols/method_map.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Declaration, searchDeclaration } from './base';
import { Declaration } from './base';
import { Property } from './property';
import { SearchYield, SymbolYield } from './search';
import { SearchYield } from './search';
import { Function } from './function';
import { Identifier, IdentifierWeights } from './types';
import { Identifier } from './types';

export interface MethodMap extends Declaration {
tag: Identifier.MethodMap,
Expand Down
7 changes: 3 additions & 4 deletions typings/symbols/type_def.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { symbolDistance } from '@/utils';
import { Declaration, searchDeclaration } from './base';
import { SearchYield, SymbolYield, Containment } from './search';
import { Identifier, IdentifierWeights } from './types';
import { Declaration } from './base';
import { SearchYield } from './search';
import { Identifier } from './types';
import { Argument } from './argument';

export interface TypeDefinition extends Declaration {
Expand Down
7 changes: 3 additions & 4 deletions typings/symbols/type_set.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { symbolDistance } from '@/utils';
import { Declaration, Documentation, searchDeclaration } from './base';
import { SearchYield, SymbolYield, Containment } from './search';
import { Identifier, IdentifierWeights } from './types';
import { Declaration, Documentation } from './base';
import { SearchYield } from './search';
import { Identifier } from './types';
import { TypeSignature } from './type_def';

/**
Expand Down
4 changes: 4 additions & 0 deletions typings/symbols/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Constant, ConstantYield } from './constant';
import { Define } from './define';
import { Enumeration, EnumerationYield } from './enumeration';
import { Function, FunctionYield } from './function';
import {
Expand All @@ -18,6 +19,7 @@ import {
/* eslint-disable no-shadow */
export enum Identifier {
Constant = 'constant',
Define = 'define',
Enumeration = 'enumeration',
Function = 'function',
MethodMap = 'methodmap',
Expand All @@ -44,6 +46,7 @@ export enum IdentifierWeights {

export const SINGLETON_TYPES = [
Identifier.Constant,
Identifier.Define,
Identifier.Function,
Identifier.Enumeration,
Identifier.MethodMap,
Expand All @@ -61,6 +64,7 @@ export const NESTED_TYPES = [

export type Symbol =
Constant |
Define |
Enumeration |
Function |
MethodMap |
Expand Down