|
1 | | -use crate::instruction_generator::label_resolver::LabelResolver; |
2 | | -use crate::instruction_generator::subprogram_info::{ |
3 | | - SubprogramInfoCollector, SubprogramInfoRepository, |
4 | | -}; |
5 | | -use crate::RuntimeError; |
6 | 1 | use rusty_common::{AtPos, CaseInsensitiveString, Position, Positioned}; |
7 | 2 | use rusty_linter::{Context, Names, SubprogramName}; |
8 | | -use rusty_parser::{Assignment, BuiltInSub}; |
9 | 3 | use rusty_parser::{ |
10 | | - BareName, DimVar, Expression, ExpressionType, FileHandle, FunctionImplementation, |
11 | | - GlobalStatement, HasExpressionType, Name, Parameter, Program, Statement, Statements, |
12 | | - SubImplementation, TypeQualifier, |
| 4 | + Assignment, BareName, BuiltInFunction, BuiltInSub, DimVar, Expression, ExpressionType, FileHandle, FunctionImplementation, GlobalStatement, HasExpressionType, Name, Parameter, Program, Statement, Statements, SubImplementation, TypeQualifier, UserDefinedTypes |
13 | 5 | }; |
14 | | -use rusty_parser::{BuiltInFunction, UserDefinedTypes}; |
15 | 6 | use rusty_variant::Variant; |
16 | 7 |
|
| 8 | +use crate::instruction_generator::label_resolver::LabelResolver; |
| 9 | +use crate::instruction_generator::subprogram_info::{ |
| 10 | + SubprogramInfoCollector, SubprogramInfoRepository |
| 11 | +}; |
| 12 | +use crate::RuntimeError; |
| 13 | + |
17 | 14 | pub fn unwrap_linter_context(linter_context: Context) -> (Names, UserDefinedTypes) { |
18 | 15 | let (pre_linter_result, linter_names) = linter_context.into(); |
19 | 16 | let user_defined_types = pre_linter_result.into(); |
|
0 commit comments