Skip to content

Commit

Permalink
lib & contrib: update imports
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Laferrière <[email protected]>
  • Loading branch information
xymus committed Sep 19, 2016
1 parent a38f3e7 commit a0c39f7
Show file tree
Hide file tree
Showing 40 changed files with 40 additions and 27 deletions.
2 changes: 1 addition & 1 deletion benchmarks/json/scripts/nitcc_parser.nit
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import json
import json::static

var text = args.first.to_path.read_all
var json = text.parse_json
2 changes: 1 addition & 1 deletion contrib/benitlux/src/client/base.nit
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import app::ui
import app::data_store
import app::http_request
import android::aware
import json::serialization
import json

import benitlux_model
import translations
Expand Down
2 changes: 1 addition & 1 deletion contrib/benitlux/src/server/benitlux_controller.nit
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module benitlux_controller

import nitcorn
import nitcorn::restful
private import json::serialization
private import json

import benitlux_model
import benitlux_db
Expand Down
1 change: 1 addition & 0 deletions contrib/neo_doxygen/src/model/descriptions.nit
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
module model::descriptions

import json::static
import json

# Documentation associated to an entity.
#
Expand Down
1 change: 1 addition & 0 deletions contrib/neo_doxygen/src/model/location.nit
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
module location

import json::static
import json

# A location inside a source file.
class Location
Expand Down
1 change: 1 addition & 0 deletions contrib/refund/src/refund_json.nit
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module refund_json

import refund_base
import json::static
import json

redef class RefundProcessor

Expand Down
2 changes: 1 addition & 1 deletion contrib/shibuqam/examples/shibuqamoauth.nit
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ module shibuqamoauth

import popcorn
import shibuqam
import json::serialization
import json

redef class HttpRequest
# percent decoded get or post parameter.
Expand Down
2 changes: 1 addition & 1 deletion contrib/tinks/src/client/linux_client.nit
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module linux_client

import mnit::linux
import linux::audio
import json::serialization
import json

import client

Expand Down
2 changes: 1 addition & 1 deletion contrib/tnitter/src/action.nit
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
module action

import nitcorn
import json::serialization
import json

import model
import database
Expand Down
2 changes: 1 addition & 1 deletion contrib/tnitter/src/push.nit
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
module push

import nitcorn
import json::serialization
import json

import model
import database
Expand Down
2 changes: 1 addition & 1 deletion contrib/tnitter/src/tnitter_app.nit
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import app::ui
import app::http_request
import app::data_store
import android::aware
import json::serialization
import json

import model

Expand Down
1 change: 1 addition & 0 deletions examples/rosettacode/json_output.nit
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# SEE: <http://rosettacode.org/wiki/JSON>
module json_output

import json::static
import json

var str = """{
Expand Down
2 changes: 1 addition & 1 deletion lib/android/bundle/bundle.nit
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
module bundle

import serialization
import json::serialization
import json

import platform
import activities
Expand Down
2 changes: 1 addition & 1 deletion lib/android/intent/intent_api10.nit
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module intent_api10
import dalvik
import android::bundle
import serialization
private import json::serialization
private import json

in "Java" `{
import android.content.Intent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module shared_preferences_api10

import dalvik
import serialization
private import json::serialization
private import json

in "Java" `{
import android.content.SharedPreferences;
Expand Down
2 changes: 1 addition & 1 deletion lib/app/http_request.nit
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module http_request

import app_base
import pthreads
import json::serialization
import json

import linux::http_request is conditional(linux)
import android::http_request is conditional(android)
Expand Down
2 changes: 1 addition & 1 deletion lib/github/api.nit
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
module api

import github_curl
intrude import json::serialization
intrude import json::serialization_read

# Client to Github API
#
Expand Down
2 changes: 1 addition & 1 deletion lib/github/events.nit
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
module events

import api
intrude import json::serialization
intrude import json

# Github event stub.
class GithubEvent
Expand Down
1 change: 1 addition & 0 deletions lib/github/github_curl.nit
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module github_curl

import curl
import json::static
import json

# Specific Curl that know hot to talk to the github API
class GithubCurl
Expand Down
2 changes: 1 addition & 1 deletion lib/ios/data_store.nit
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module data_store

import app::data_store
import cocoa::foundation
private import json::serialization
private import json

redef class App
redef var data_store = new UserDefaultView
Expand Down
1 change: 1 addition & 0 deletions lib/json/store.nit
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
module store

import static
import json

# A JsonStore can save and load json data from file system.
class JsonStore
Expand Down
2 changes: 1 addition & 1 deletion lib/linux/data_store.nit
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module data_store
import app::data_store
private import xdg_basedir
private import sqlite3
private import json::serialization
private import json

redef class App
redef var data_store = new LinuxStore
Expand Down
1 change: 1 addition & 0 deletions lib/mongodb/mongodb.nit
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
# ~~~
module mongodb

import json::static
import json
private import native_mongodb

Expand Down
2 changes: 1 addition & 1 deletion lib/mpi/mpi.nit
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ end
import c
intrude import core::text::flat
import serialization
private import json::serialization
private import json

in "C Header" `{
#include <mpi.h>
Expand Down
1 change: 1 addition & 0 deletions lib/neo4j/curl_json.nit
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
module curl_json

import json::static
import json
intrude import curl

# An abstract request that defines most of the standard options for Neo4j REST API
Expand Down
1 change: 1 addition & 0 deletions lib/neo4j/error.nit
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
module neo4j::error

import json::static
import json

# An error thrown by the `neo4j` API.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/nitcorn/restful.nit
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
module restful is new_annotation(restful)

import nitcorn
import json::serialization
import json

# Action with `restful` methods
class RestfulAction
Expand Down
1 change: 1 addition & 0 deletions lib/popcorn/pop_handlers.nit
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
module pop_handlers

import pop_routes
import json::static
import json

# Class handler for a route.
Expand Down
2 changes: 1 addition & 1 deletion lib/popcorn/pop_repos.nit
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ module pop_repos

import popcorn::pop_config
import serialization
import json::serialization
import json
import mongodb::queries

redef class AppConfig
Expand Down
2 changes: 1 addition & 1 deletion lib/popcorn/pop_validation.nit
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
# ~~~
module pop_validation

import json
import json::static

# The base class of all validators
abstract class DocumentValidator
Expand Down
2 changes: 1 addition & 1 deletion lib/serialization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ The main implementations of these services are `JsonSerializer` and `JsonDeseria
from the `json_serialization` module.

~~~
import json_serialization
import json
import user_credentials
# Data to be serialized and deserialized
Expand Down
1 change: 1 addition & 0 deletions src/doc/doc_phases/doc_indexing.nit
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module doc_indexing
import doc_base
import html_templates::html_model # FIXME maybe this phase should depend on `html_render`
private import json::static
private import json

# Generate the index for then Nitdoc QuickSearch field.
#
Expand Down
2 changes: 1 addition & 1 deletion src/doc/html_templates/html_components.nit
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module html_components

import doc_base
import html::bootstrap
import json::static
import json

# A label with a text content.
class DocHTMLLabel
Expand Down
2 changes: 1 addition & 1 deletion src/examples/nitwebcrawl.nit
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Crawler on the nitweb web API
module nitwebcrawl

import json
import json::static

# Download a HTTP resource
fun curl(url: String): String do
Expand Down
1 change: 1 addition & 0 deletions src/model/model_json.nit
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
module model_json

import model::model_collect
import json::static
import json
import loader

Expand Down
2 changes: 1 addition & 1 deletion tests/test_json_deserialization.nit
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

import test_deserialization
import json::serialization
import json
#alt1# import test_deserialization_serial
#alt3# import test_deserialization_serial

Expand Down
2 changes: 1 addition & 1 deletion tests/test_json_deserialization_heuristic.nit
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import json::serialization
import json
import json::static

class MyData
Expand Down
2 changes: 1 addition & 1 deletion tests/test_json_deserialization_plain.nit
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import json::serialization
import json
import json::static

class MyClass
Expand Down
1 change: 1 addition & 0 deletions tests/test_json_unicode.nit
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import json::static
import json

var str = """{
Expand Down
2 changes: 1 addition & 1 deletion tests/test_serialization.nit
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#alt2#module test_serialization_alt2 is serialize

import serialization
import json::serialization
import json

# Simple class
class A
Expand Down

0 comments on commit a0c39f7

Please sign in to comment.