@guihz/trading-vue-editor-tes 0.0.86 → 0.0.88

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,9 +15,10 @@ import BuildInLinefill, { TLinefill, Linefill } from "./linefill";
15
15
  import BuildInBox, { IBoxArgs, Box } from "./box";
16
16
  import BuildInTable, { ITableArgs, Table } from "./table";
17
17
  import Strategy, { IOrder, IStrategy } from './strategy';
18
+ import Request from './request';
18
19
  import { Log } from './log';
19
20
  import { Runtime } from './runtime';
20
21
  export { TccErrorListener } from './errorListener';
21
22
  export type { IColorArgs } from './color';
22
- export { BuildInArray, BuildInMath, BuildInTa, BuildInInput, BuildInColor, BuildInMatrix, ChartPoint, Point, BuildInTimeframe, BuildInStr, BuildInMap, PseudoArray, BuildInLabel, BuildInPolyline, BuildInLine, Label, Polyline, Line, BuildInLinefill, Linefill, BuildInBox, Box, BuildInTable, Table, Log, Runtime, Strategy };
23
+ export { BuildInArray, BuildInMath, BuildInTa, BuildInInput, BuildInColor, BuildInMatrix, ChartPoint, Point, BuildInTimeframe, BuildInStr, BuildInMap, PseudoArray, BuildInLabel, BuildInPolyline, BuildInLine, Label, Polyline, Line, BuildInLinefill, Linefill, BuildInBox, Box, BuildInTable, Table, Log, Runtime, Strategy, Request };
23
24
  export type { PartialLabelArgs, IPolyline, ILineArgs, TLinefill, IBoxArgs, ITableArgs, IOrder, IStrategy };
@@ -0,0 +1,22 @@
1
+ import { BuiltInVariables } from "../buildInVariables";
2
+ import { VBarmergeGaps } from "../enum";
3
+ interface IRequestArgs {
4
+ symbol: string;
5
+ timeframe: string;
6
+ expression: string;
7
+ gaps?: VBarmergeGaps;
8
+ lookahead?: VBarmergeGaps;
9
+ ignore_invalid_symbol?: boolean;
10
+ currency?: string;
11
+ calc_bars_count?: number;
12
+ paramsExpr?: string[];
13
+ }
14
+ export default class Request {
15
+ private _variables;
16
+ private _scriptId;
17
+ constructor(variables: BuiltInVariables, id: string);
18
+ security(args: IRequestArgs, posStr: string): any;
19
+ private _getDependCodes;
20
+ private _runScripts;
21
+ }
22
+ export {};
@@ -6,13 +6,13 @@ export default class ParseToJs {
6
6
  private _prefixNameConst;
7
7
  private _userTypes;
8
8
  private _isInFunc;
9
+ private _currentFuncName?;
9
10
  private _varlist;
10
11
  private _memberIndexList;
11
12
  private _blockCount;
12
13
  private _inputCount;
13
14
  private _count;
14
15
  private _codesCol;
15
- private _depends;
16
16
  private _dependsObj;
17
17
  constructor(prefix: string);
18
18
  preParser(values: IKeyObjectValue[]): string | undefined;
@@ -20,6 +20,7 @@ export default class ParseToJs {
20
20
  private _parserStmt;
21
21
  private _parserTypeStatement;
22
22
  private _parserVarBlockStmt;
23
+ private _getDepends;
23
24
  private _parserForToStatement;
24
25
  private _parserForInStatement;
25
26
  private _parserAgainAssign;
@@ -30,7 +31,6 @@ export default class ParseToJs {
30
31
  private _parserWhileStatement;
31
32
  private _parserIfStatement;
32
33
  private _parserBlockLine;
33
- private _delDepends;
34
34
  private _parserReturnBlock;
35
35
  private _getMembersCode;
36
36
  private _parserArrowMethod;
@@ -51,6 +51,9 @@ export default class ParseToJs {
51
51
  private _parserMethodExpression;
52
52
  private _parserMethodElement;
53
53
  private _parserArguments;
54
+ private _requestParamsHandle;
55
+ private _getExpressionContext;
56
+ private _getDependsCode;
54
57
  private _parserBrackethesized;
55
58
  private _functionalProcess;
56
59
  }
@@ -35,6 +35,7 @@ export default class ParserVisitor extends ParserUtils {
35
35
  private _getImportLibraryFunc;
36
36
  private _isEndExpr?;
37
37
  private _inputVarName?;
38
+ private _hasRequest?;
38
39
  constructor(props: IKeyObjectValue, comments: IKeyObjectValue[], getImportLibraryFunc: (obj: IKeyObjectValue) => IKeyObjectValue);
39
40
  get overloadsFuncs(): IKeyValue[];
40
41
  get errors(): IError[];
@@ -52,6 +52,7 @@ export interface IDocValue {
52
52
  defaultValue?: any;
53
53
  index?: number;
54
54
  isImport?: boolean;
55
+ hasRequest?: boolean;
55
56
  }
56
57
  export interface IDetailedDesc {
57
58
  desc: string[];
@@ -65,6 +66,7 @@ export interface IField {
65
66
  isArg?: boolean;
66
67
  isVarip?: boolean;
67
68
  valueType?: string;
69
+ varScope?: number;
68
70
  }
69
71
  export interface IArg {
70
72
  name: string;